0

I have a jQuery modal that pops up when a customer clicks on a link on one of my product pages (which is a classic asp store...) This modal contains an Iframe, Within this Iframe sits my .net vb form.

The src= for the Iframe is populated with script when the link is clicked.

when the form is loaded within the Iframe I have a SQL insert on page_load...

For some reason Im getting 3 inserts into the database instead of the one? when I debug my app locally it works perfectly. Can anyone help? Perhaps somone knows a better way of achieving what im trying to do? I want a sexy modal that pops up with my .net form in it from my classic asp page...

<div id='basic-modal'>
<p>
 <br /><br />
 <a href='#' class='basic' onClick="document.getElementById('ifr').src='quote/Public/Default.aspx?PID=<%=pIdProduct%>'">
 This product is available printed with your own design, photo, logo or text! Click here to get a quote. No minimum order quantity from one to millions printed in the UK!
 </a>
 </p>
</div>
<div id="basic-modal-content">
 <iframe id="ifr" width="850px" height="600px" frameborder="0" scrolling="no" title="Request a quote">
 </iframe>
 <div id="closeButton">
 <a href="javascript:parent.change_parent_url('http://thecleverbaggers.co.uk/store/pc/viewPrd.asp?idproduct=<%=pIdProduct%>');">
 <img src='img/basic/x.png'/>
 </a>
 </div>
</div> 
 <script type="text/javascript">
 function change_parent_url(url)
 {
 document.location=url;
 } 
 </script>

Many thanks for any help.

Joel Coehoorn
418k114 gold badges581 silver badges819 bronze badges
asked Sep 7, 2011 at 8:43

1 Answer 1

0

I think you need to check your html to see if it contains any tag element with empty src as for example images with empty src takes it's src as the current page which initiate another request to the same page check this link http://www.nczonline.net/blog/2009/11/30/empty-image-src-can-destroy-your-site/

answered Sep 7, 2011 at 9:19
Sign up to request clarification or add additional context in comments.

1 Comment

Hi, I thought that might be the problem. I have already checked the pages the only items with empty tags are the values of form items eg. <input name="something" type="hidden" value="">

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.