View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Code to stop entire page from loading. Is this possible?

Thread began 8/09/2009 1:18 pm by mjc309098 | Last modified 8/10/2009 5:24 pm by mjc309098 | 1221 views | 3 replies

mjc309098

Code to stop entire page from loading. Is this possible?

Hello;
I want to start by thanking tech support for helping me with the problem in my map.

I would like to do one last thing to tihs before I leave it alone. Right now, I have to have it set up so that the form is first, then the map under that then the directions stream in after the map.

I am trying to make it so when you submit your departure address, it doesn't load the whole page and you have to scroll down. I want it to load onto the directions part of the page.

Is this possible? I read another post out here that someone tried it, said they have a script that works, I tried it, and it isn't working, but it doesn't throw any errors either.

Here is the code:

<script type="text/javascript">
function updateInfoWindow() {
wagmp_directions_1_obj.markers[0].openInfoWindowHtml
}
</script>

<cfform id="address" name="address" method="post" action="">
<cfinput type="text" name="addr" ID-"addr">
<cfinput type="text" name="city" ID-"city">
<cfinput type="submit" name="Submit" validateat="onSubmit" onClick="wagmp_directions_1(document.getElementById('address').value+', '+document.getElementById('city').value)" value="Get Directions" />

<!--- here is my div tags for maps --->
<div id="wagmp_map_1" style="width: 400px; height: 400px;"></div><div id="wagmp_directions_1" name></div>
</form>

Can anyone help me on this? I know it can be done, like I said, there is no errors, but it doesn't work. I also still get my directions, still have to scroll down.

This is written in ColdFusion.
Thank you.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...