JQuery :: Passing Tags To Dialog?
Jan 26, 2010
I have an odd situation here that I can't figure out. I am opening dialog via image <img src="/Images/Icons/24.png" align="absmiddle" width="12" border="0" title="Edit News" name="News.cfm?ID=2#" vsize="450" hsize="700" sButton="Save" cButton="Cancel"> Everything works fine cept the "hsize" tag that controls the width of the dialog. I tried different tags even use "vsize" tag that works fine for height but dialog width stays at default. Btw if I set height to a value then it works (height: 700,).
.dialog({
title: $link.attr('title'),
width: $link.attr('hsize'),
height: $link.attr('vsize'),
[Code]....
View 3 Replies
ADVERTISEMENT
Mar 2, 2010
I am currently having a problem with a couple anchor tags that I have on a jQuery modal popup (using jQuery-ui-1.7.2.custom.js for the modal popup).Both of them will work correctly when I use jQuery v1.3.2 in any browser but they will not work anymore when I upgrade to v1.4.1 or v1.4.2 in IE 8. Chrome and FireFox will continue to work like they did in the previous versions.
When a user clicks on one of the anchor tags the action should perform without posting back. I have set up the onClick like thisonClick="javascript: return false;" which should prevent them of posting back but it looks like itsignoringwhat is returned and posting back. The logic I am using here is also used on another page but without the modal popup. Everything works fine on that page with every browser for jQuery v1.3.2, v1.4.1, and v1.4.2.
One thing l would like to point out is one of the tags is a select all button which uses .live() so I can select all the checkboxes on the modal popup. The reason I point this out is because other posts like live-method-for-change-event-broken-in-jquery-1-4-2-for-ie-worked-in-1-4-1 also had problems with IE 8 and .live(). My problem and theirs might be related.
View 2 Replies
View Related
Aug 4, 2010
I have a web page that is in php. when someone clicks on a <span></span> elem, I need to passed a var to a jQuery dialog box that will then access a database to get information to be displayed.
View 3 Replies
View Related
Mar 22, 2011
I am using the $.ajax funtionality with the UI dialogbox plugin. I need to pass an object to the dialog box. I have tried
.ajax({
prompt: 'POST',
url: '/page.jsp',
data: {
[Code].....
How can I pass my object to my dialog box without getting an error?
View 2 Replies
View Related
Jun 30, 2010
I've made a made a lovely form which is loaded into a dialog upon clicking a link. Works fine, but I want something which identifies they URL clicked on initially (e.g. /stats.php?id=bob ) to end up as a hidden form field. Should be easy but I can't get the syntax/logic right.
[Code]...
View 2 Replies
View Related
Aug 26, 2009
Code:
$('.openDialog').click(function(event){
var width=$(this).attr('width');
var height=$(this).attr('height');
[code]...
I'm trying to do something like above, where I pass the width and height into the Dialog box but it doesn't take the variable.It only works if I put an actual number here instead of a variable.
$('#dialog').dialog('option', 'width', width);
View 3 Replies
View Related
Oct 16, 2009
i have been working with jquery dialog for a while and am stuck on a new problem today.when i load a dialog, it is running the button functions when the dialog is opened.
$(function() {
var dialogopts = {
modal:true,
[code]....
View 2 Replies
View Related
Sep 10, 2009
I used the jquery modal dialog from the[url].... that is currently draggable from the title only. is there any way i can make
that draggable by inserting a div at the footer of the dialog or make it draggable from everywhere in the dialog.
View 4 Replies
View Related
Jun 2, 2009
Is it possible to have the jquery ui dialog close when clicking outside the area of the dialog? Like facebox?
View 2 Replies
View Related
Feb 17, 2010
I am trying to get a dialog box to open another dialog box. Clicking on "more search options" the first time results in opening a dialog box. Clicking "search" within the dialog box results in opening up a second dialog box. But this only works the first time I click on "more search options". In other words, the second dialog box only opens up only once. To get the second dialog to open again, I have to reload the page in the browser.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[code]....
View 2 Replies
View Related
Dec 15, 2011
Can't seem to make it work, I have seen many examples but they are all just for 1 div tag. When i trymore than one it doesn't work anymore.The first one works, if i have more than 1 then the other don't work.
using the following jquery
$(document).ready(function(){
$("#toggle-text").click(function () {
var divvalue= this.value;
[Code]....
View 1 Replies
View Related
Dec 28, 2010
I use Firefox and am wondering how to select a word and wrap [b] tags or [quote] tags around it?
View 30 Replies
View Related
Jul 12, 2010
Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags?
View 3 Replies
View Related
Oct 29, 2011
I don't understand ..
$("#form-dialog-join").dialog() is a valid function which I copied from Jquery demo. What's wrong with it?
btw, all the jquery library is loaded correctly.
View 4 Replies
View Related
Jul 23, 2005
If I do the following, it will pop up print dialog. But i want to produce
"File->Print Preview" Screen. Is it possible to do that?
<input type="button" value='Print Preview' onClick='window.print();'>
View 1 Replies
View Related
Jun 25, 2010
I really know nothing about how to code JavaScript (I know what it is and what it does) and I need a script to go in the head of my page and look for all <a> tags that have <img> tags inside of them and add a rel="lightbox" attribute to them.
View 6 Replies
View Related
Oct 6, 2009
I'm trying to work with a dialog box and when the page has been refreshed, the dialog box appears fine. But if I close it out and try to open it again, it won't open. Here is the code I'm using.
[Code]...
View 1 Replies
View Related
Sep 30, 2009
I'm passing the variables myTitle and myLink to form.php using javascript.
This is the way I'm doing it:
Code:
<a href='form.php?title=" + myTitle +"&link="+myLink+">Click me</a>
It's working great but sometimes myTitle and myLink contain the plus character (+). When this happens it's not passed. In the case of the title, it's just a problem of looks but in the case of the link, well, the link won't work without the character.
As an example if the title is: Laptop + Accessories What is passed is: Laptop Accessories
What can I do to pass also the plus character??
View 4 Replies
View Related
May 13, 2010
I am seeing a weird issue where the dialog opacity does not work with IE8 browsers controlled by settings under a Windows Group policy. I can run IE8 from my house and the dialog opacity works fine. Does anyone know what Group Policy setting might turn off opacity in IE8?
View 2 Replies
View Related
Apr 26, 2010
How can I remove the X from the dialog? I have the following existing code:
$(
'#DivPassword').dialog({
autoOpen:
[Code]....
View 4 Replies
View Related
Nov 2, 2010
how to retrieve textfield value with id="key" in jQuery Dialog from the following code?
$('#dialog').load('jsp/search.jsp', function() {
$("#dialog").dialog( {
modal : true,
[code]....
View 1 Replies
View Related
May 18, 2010
I just started using JQuery and I have a lot of questions, but this is the most complicated one:
I'm trying to show a dialog using Jquery UI. The problem is that into my dialog I'd like to insert a (dynamic) grid using JQGrid. is this possible, or I should create a normal html table?
View 1 Replies
View Related
Aug 17, 2011
I want to make the add functionality in the jquery, where i can add successfully but i also want that when after add, my dialog closes, the div on parent should get refreshed and show me added entry, all is working but i have to reloadthe whole page to make it work
Here is my code!
So on close it should refresh my div or may be it should rerun my query to fetch final records from the db
Do not how, but how it will work!
Close the dialog this is where i tink needs some change, should it be edited enough that onclose it should refresh parent div and requery my query.
View 4 Replies
View Related
Aug 2, 2009
When I try to animate a DIV-element with this code:[code]everything works fine. But when I try to do it after I press a button in a dialog - nothing works! Why? [code]
View 1 Replies
View Related
Jun 29, 2009
I am new to jQuery UI, and I am trying to create a new dialog using when I click on a link or a button. Here is my code:
function openJQueryDialog(dialogWidth){
$(function() {
$("#AJAX_DIALOG").dialog({
bgiframe: true,
autoOpen: false,
bgiframe: true,
closeOnEscape: true,
modal: true,
resizeable: true,
width: dialogWidth,
close: function(event,ui) {
try{
jQuery("#AJAX_DIALOG").remove();
}catch(e){
alert(e.message);
}}});
$("#AJAX_DIALOG").dialog("open");
});
}
This code works fine on Firefox
View 1 Replies
View Related
Feb 18, 2011
What I'm trying to do is have a 'Save As' dialog box pop up when I click an anchor tag.What's hidden in the anchor tag is base64 information, so my anchors look like this:
<a href=# src='data:application/octet-stream;base64, (base64 string)'>file name</a>
So when I click on this, it gives me the option of downloading my base64 info just fine, but the problem is, the name of it looks to be just the entire base64 string. I was wondering if there was a way I could set this name? I can get the file name, so I'd love to just put 'blah.jpg' as the name that the user downloads.The reason I'm asking is because when I download the file, it comes out as (random characters).bin.part, and if I know the download is a pdf, I try opening it with a pdf viewer, but get yelled at by the MIME type... however, if I simply change '.bin.part' to '.pdf', I can open the file just fine, so I'd love for an automatic naming system, but not sure how to implement that.I've tried the document.execCommand('saveAs', '1', '<filename here>'), but I think this is for an actual file that you serve from the server... I don't have the actual file, just the base64.
View 1 Replies
View Related