Try taking out the dot in the URL you are loading and use an absolute URL -
the "./" refers to a local filesystem path, which would explain it working
locally but not online.


davidnext wrote:
> 
> 
> Hi All,
> 
> I am having a problem with loading an HTML file to populate a dropdown
> as follows with names of states in the USA:
> 
>       $("select[name=step_2]").load("./includes/usa.html");
> 
> The HTML it is going into is as follows:
> 
>      <label for="step_2" class="disabled">* STEP 2)  Select your State/
> Province:</label>
>      <select disabled="disabled" name="step_2">
>                       Inserted dropdown goes here.
>      </select>
> 
> 
> When running the script I get the message in Firebug:
> 
> Syntax error:    [Break on this error] _block_windowOpen(); function
> (X) {\n
> xpopup.js (line 80)
> 
> This works when running on a local wamp server but fails on remote
> servers...any ideas?  Thanks.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Ajax-loading-of-HTML-tp22321628s27240p22326038.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to