SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot behati's Avatar
    Join Date
    Feb 2012
    Location
    Copenhagen, Denmark
    Posts
    152
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Arrow Postback disabling Javascript?

    Hey guys,

    I've run into some trouble with a bit of Javascript on a ASP.NET project - basically when I load the page my little Javascript functions work great, but when I then query the server for some data or cause any other kind of postback, my Javascript simply stops working?

    Is this some kind of known issue with a fix?

    I can't post the code at the moment, but basically all I have is a few Javascript functions inside the <head> tag of my HTML.

    Any ideas?

    Thanks in advance!

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by behati View Post
    I've run into some trouble with a bit of Javascript on a ASP.NET project - basically when I load the page my little Javascript functions work great, but when I then query the server for some data or cause any other kind of postback, my Javascript simply stops working?

    Is this some kind of known issue with a fix?
    When requesting from the server, you only get the HTML code that first loads in to the web browser.
    The way that JavaScript works is that it runs on the client side after the browser has loaded the page.

    Can you provide an example of what stops working?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •