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


Recent Events
  • 18/11/2017 Black Friday is coming

    Don't wait BLACK FRIDAY, use FRIDAY17 coupon code to get 35% discount for all our extensions right now.

  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.


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? 4 Years, 5 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? 4 Years, 5 Months ago Karma: 671
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? 4 Years, 5 Months ago Karma: 0
That worked. Thanks for the prompt reply and solution.
The topic has been locked.
 
Go to topPage: 1