![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 | |
|
WLC Member
Join Date: Sep 2008
Posts: 5
|
I've encountered a wierd problem that I can't understand. Here's the scenario:
I have a page that displays a popup login box. It calls a function that uses document.createElement to create some divs. I am storing the contents of the innermost div in a file that I want to load dynamically through AJAX. Here's the scenario. I can't post the exact code because I'm doing this for work and we're not allowed to post our code: web page calls JS function showloginbox() showloginbox() creates the divs using document.createElement showloginbox() then tries to open getloginboxcontents(), which only contains an AJAX call to an .ASP file that will return the contents to throw into the created element. getloginboxcontents() calls the update function, showlogincontents(), which takes the request.responseText and puts it in the created element. However, wherever I refer to the request object in showlogincontents(), I get an error saying "request is null". If I change it and remove the showloginbox() and call getloginboxcontents() directly from the page, I don't get this error and the request processes as normal. This may be a little easier to understand: Quote:
Can you call an AJAX function from another function? Or is something else going on here? Please help, thanks. |
|
|
|
|
|
|
#2 |
|
WLC Member
Join Date: Sep 2008
Posts: 5
|
Nevermind! Had two functions with the same name. Holy ****, how frustrating!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|