By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,322 Members | 1,904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,322 IT Pros & Developers. It's quick & easy.

Popup aspx page using jquery

P: 53
Hi,

I want to popup aspx page using jquery. I have written the following code
Expand|Select|Wrap|Line Numbers
  1. <a href="Contactus.aspx?TB_iframe=true&height=250&width=200" class="thickbox" >AboutUs</a>
I have called
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="js/jquery.js"></script>
  2. <script type="text/javascript" src="js/thickbox.js"></script>
  3. <link rel="stylesheet" href="js/thickbox.css" type="text/css" media="screen" />
but in that thickbox.css there is no class with name thickbox.
can you please tell me the what is the procedure to popup page using jquery.

Thanks in Advance
Pavani
Apr 4 '09 #1
Share this Question
Share on Google+
4 Replies


acoder
Expert Mod 15k+
P: 16,027
You need to set KeepThis as well - see the iFramed Content example.

The class="thickbox" is required for the JavaScript code - see the comments in the code.
Apr 4 '09 #2

P: 53
I tried with that IFramed code
Expand|Select|Wrap|Line Numbers
  1. <a href="Contactus.aspx?KeepThis=true&TB_iframe=true&height=400&width=600&modal=true" class="thickbox" >ConactUs</a>
but its not opening popup window just navigating to contact us page. can you please tell me anything i have missed?
Apr 5 '09 #3

P: 53
I used the following code also for Inline popup window but this is also not working.Please see the followed code and give me reply
Expand|Select|Wrap|Line Numbers
  1. <div>
  2.     <a href="#TB_inline?inlineId=popupdiv&height=120&width=320&inlineId=myOnPageContent" class="thickbox" >open child window</a>
  3. </div>
  4.    <div id="popupdiv" style="display:none">
  5.  
  6. <table style="width: 30%">
  7. <tr>
  8. <td >
  9. Comments :</td>
  10. <td>
  11. <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox></td>
  12. </tr>
  13. <tr>
  14. <td>
  15. </td>
  16. <td>
  17. <asp:Button ID="Button1" runat="server" Text="Save" /></td>
  18. </tr>
  19. <tr>
  20. <td >
  21. </td>
  22. <td >
  23. </td>
  24. </tr>
  25. </table>
  26. </div>
Apr 5 '09 #4

acoder
Expert Mod 15k+
P: 16,027
Remove "&inlineId=myOnPageContent" from the URL.
Apr 5 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.