School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,415 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,575 people online right now. Registration is fast and FREE... Join Now!




ajax modal popups

 

ajax modal popups, question about how an ajax modal popup "should" work

hexxcode

3 Jul, 2009 - 06:25 AM
Post #1

New D.I.C Head
*

Joined: 3 Jul, 2009
Posts: 1

I have a question in regards to just how my understanding of an ajax popup should work and how my developer has integrated it into a site we are developing together (both developers, he's just on the C# .net side).

I wanted 3-5 ajax modal popup forms globally on a site we have created and now i'm concerned they have been implemented incorrectly. My understanding is that anything ajax is pulled into the site when prompted and not when the page initially loads an renders. Looking at the generated source code from a browser i can see all the popup code within the page. What it is doing to my code is giving me a lot of repeat keywords for words i don't want as keywords (i.e. each popup asks for name, email... so i have high counts for each non important word).

I initially had the modals setup using JQuery but he could not get .net and the forms to work properly so he is using some standard .net modal setup.

I know from using JQuery that i should not see the ajax modal content when viewing the source because it isn't rendered yet into the page...

So i'm hoping i can get some verification that I am not incorrect in thinking that how it is setup is NOT truly AJAX.

thanks all

User is offlineProfile CardPM
+Quote Post


Martyr2

RE: Ajax Modal Popups

4 Jul, 2009 - 10:27 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 7,246



Thanked: 820 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
First of all, AJAX can be called at any time and it is actually very common to have it make calls during page loads, rendering and even on a timer. When AJAX is called can be at any time not just when the user does an action.

As for what you should see in the source code, you should only see the functions necessary for initiating the request and any code for processing the response and handling your on page elements.

Now this doesn't mean you should be seeing any server side code being pulled into the script for processing. But if you load the page and have AJAX code start up and make a request which initializes some of your page elements, that is very common.

Hopefully this answers the question. smile.gif
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 11:29PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month