Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Shawn Souto

@Shawn Souto
About
Posts
11
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Browser Compatability is a joke / When ninja coder do website development
    S Shawn Souto

    Did you try melting the server down and telling the client there is no hope?

    The Lounge css ios database tutorial

  • Does anyone else pronounce their code?
    S Shawn Souto

    Doesn't everyone?

    The Lounge html css com cryptography collaboration

  • Strange Characters Appended to every url as #cCccCc
    S Shawn Souto

    Well... thats a really good point. Now to see if I can find a way to change that..

    .NET (Core and Framework) question com

  • Strange Characters Appended to every url as #cCccCc
    S Shawn Souto

    It turns out that a script from tynt is responsible for this. I completely forgot that I put the script on my site. Thanks for everything, Shawn

    .NET (Core and Framework) question com

  • Strange Characters Appended to every url as #cCccCc
    S Shawn Souto

    It turns out that a script that I added to the site previously (though I never updated the live site) is causing this to happen. The Script is from tynt.com, and it is used for tracking what content on the site users are copy/pasting. Thanks for your help, I was perplexed there for a minute as I completely forgot about implementing that script. Thanks, Shawn

    .NET (Core and Framework) question com

  • Strange Characters Appended to every url as #cCccCc
    S Shawn Souto

    Hello all, I am totally perplexed as I have never seen this happen before, and I am not really sure where to turn (Google turned up nothing useful). Every time a url is requested on one website, a strange string is automatically appended to it like: http://www.dalegroup.com/about.aspx#axzz0purapSyA[^]. At first I thought I could have accidentally made the Session cookieless, but this string is different on every page, and even when refreshing the same page. Has anyone ever seen this before, and if so how do I get rid of it? Thanks, Shawn

    .NET (Core and Framework) question com

  • Visual Studio Text Editor Does Not Recognize JavaScript/JScript
    S Shawn Souto

    I have been informed that it apparently is an issue between VWD and VS. I was told to uninstall both visual web developer express and visual studio. Then reinstall visuall studio and it should work fine. Unfortunately I have not had the opportunity to try this yet. Let me know if it works for you. Thanks, Shawn

    Visual Studio javascript visual-studio tools help csharp

  • ASP.NET AJAX Postback Not Updating DOM?
    S Shawn Souto

    Yup thats exactly the problem I'm having. The first time I submit a comment, it will add it to the page, after that, each sequential postback will send the correct response, but the html inside the update panel doesn't update...

    ASP.NET html csharp css asp-net sysadmin

  • ASP.NET AJAX Postback Not Updating DOM?
    S Shawn Souto

    Hi Student :) Thank you for the fast reply, alas I just 'shortcuted' the text to make it more readable, yes the button_Click method is actually btnSubmit_Click. I was just trying to follow the guidelines and make the code as small as possible. The update panel is set to conditional, and at the very end of the event handler you will notice I called updateComments.Update();. I am using tinyMCE inside the update panel (<uc1:xmsRichEditor ID="xmsRichEditor1" runat="server" UseFullEditor="false" />) and in order to reset the textbox with the value inside tinyMCE I need to do the following before posting back to the server: document.getElementById("aspnetForm").elements["<%= xmsRichEditor1.UniqueID %>"].value = tinyMCE.get('<%= xmsRichEditor1.ClientID %>').getContent(); //this code works perfectly fine, has been for a while If you want to see this page in its live environment you can see it here: http://blabberjax.com/singlePage.aspx?id=3[^] The thing is that If I add one comment, the AJAX postback works, and the new comment is added in a new div inside of divComments (divComments.Controls.Add(divComment);). But after posting one comment, if I try to post another one the Response I receive from the server (using firebug to inspect it) has the new divComment in the response html, but the html is never actually injected into the DOM. To make sure that there was not some unhandled exception, I debugged the code. It works identically both times, and the Response from the server is identical each time (except the second time it includes a new div with the second comment) though the html in the update is not refreshed on the second postback.

    modified on Monday, November 9, 2009 7:45 PM

    ASP.NET html csharp css asp-net sysadmin

  • ASP.NET AJAX Postback Not Updating DOM?
    S Shawn Souto

    Hello fellow coders, I am having a strange problem which I've never run in to previously. The Problem: I am getting back the new HTML in the AJAX postback, but the DOM / page isn't updating. How it happens:: Whenever a user clicks the button 'Add Comment' the the following code is called: button_click(...) { ... IXmsComment cmt = new IXmsComment(); cmt.content = content; cmt.date = DateTime.Now; cmt.username = tbxUsername.Text; AddComment(cmt); if (divComments.Visible == false) divComments.Visible = true; updateComments.Update(); } ... AddComment(IXmsComment cmt) { HtmlGenericControl divComment = new HtmlGenericControl("div"); //divComment.ID = "divAddedComment"; HtmlGenericControl divAuthor = new HtmlGenericControl("div"); HtmlGenericControl divDate = new HtmlGenericControl("div"); HtmlGenericControl divDescrip = new HtmlGenericControl("div"); //Assign CSS Classes to Controls: divComment.Attributes.Add("class", "comment"); divAuthor.Attributes.Add("class", "commentAuthor"); divDate.Attributes.Add("class", "commentDate"); divDescrip.Attributes.Add("class", "commentDescription"); //Add Content to each Control: divAuthor.InnerText = cmt.username; //text only divDate.InnerText = cmt.date.ToString(); //text only divDescrip.InnerHtml = cmt.content; //html allowed //Add Controls to parent: divComment.Controls.Add(divAuthor); divComment.Controls.Add(divDate); divComment.Controls.Add(divDescrip); //add divComment to master div: divComments.Controls.Add(divComment); xms.Utils.scriptCalls.AnimateStatus(divComment.ClientID, updateComments); UpdateProgress1.Visible = false; } Here is the update panel html: <asp:UpdatePanel ID="updateComments" runat="server" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnSubmit" EventName="Click" /> </Triggers> <ContentTemplate> <div id="divComments" class="commentCollection" runat="server"></div> <div id="divNewComment" class="newComment" runat="server" visible="false"> <fieldset>

    ASP.NET html csharp css asp-net sysadmin

  • Visual Studio Text Editor Does Not Recognize JavaScript/JScript
    S Shawn Souto

    Hello all, I've got an interesting problem. Since I have installed Visual Studio 2008, when I open a javascript file (.js) it opens in the script editor, which it should, but it does not have syntax highlighting. I figured this would be an easy fix, so I went into Tools -> Options -> Text Editor and found that my visual studio does not have JScript available as a language! I'm not sure why, and I also have Visual Web Developer Express 2008 on my PC, which does have JScript available in this menu. So, I attempted to use the import/export wizard and export the JScript settings from VWD to VS, but to no avail, VS would not let me import them. Has anyone seen this problem before? What can I do to get JavaScript Text Editing support in Visual Studio? Thanks, Shawn

    Visual Studio javascript visual-studio tools help csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups