Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

JDialog- how to add a link in content to close it?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: JDialog- how to add a link in content to close it?
#42633
JDialog- how to add a link in content to close it? 10 Years, 10 Months ago Karma: 0
How can I add a simple link in the JDialog content to close a JDialog that I've set to autoOpen on page load?

In other words, I would like for it to work just like the "X" link in the JDialog title bar that does nothing except close the dialog. The purpose is for JDialog to display an alert message on load and I would prefer the user click some link text I write versus an "X" on the title bar before proceeding.
The topic has been locked.
 
#42665
Re:JDialog- how to add a link in content to close it? 10 Years, 10 Months ago Karma: 748
Hello,

Download and upgrade the component. After this add "id" parameter with unique value to {arijdialog} tag. It will look like:

{arijdialog width="350" height="200" title="Content" id="mydialog"}

And use the following HTML code to add a close button:

<input type="button" value="Close" onclick="(window['ascQuery'] || jQuery)('#mydialog').dialog('close');" />

PS: Clean also browser's cache.

Regards,
ARI Soft
The topic has been locked.
 
#42698
Re:JDialog- how to add a link in content to close it? 10 Years, 9 Months ago Karma: 0
That worked. Thanks for the prompt reply and solution.
The topic has been locked.
 
Go to topPage: 1