RE: [jQuery] Can I use external domain with jQuery media plugin ?
From what I've seen the answer is no.. The workaround is to build a redirect page in whatever backend processing language you're using (ColdFusion, JSP, .Net, PHP), then call the redirect page in the href. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Sourabh Sent: Tuesday, February 16, 2010 1:17 AM To: jQuery (English) Subject: [jQuery] Can I use external domain with jQuery media plugin ? Hello it is about jQuery media plugin (http://malsup.com/jquery/media/ misc.html) Can I use a id=mike class=media {type: 'html'} href=http:// www.google.co.in This to load EXTERNAL DOMAIN html page in an iframe that media plugin I create. When I tried above code it did not work.Do I need to do anything else for this ? Thanks in advance
[jQuery] Another Why doesn't this work in IE
$(#TOAppr).live(click, function(){ $.post(webapps/hr/admin/actions/act_adminHR_handler.cfm, { desc: $(this).attr('desc'), pk: $(this).attr('pk') }); $(#content-box).load(webapps/hr/admin/display/dsp_timeOffApprove.cfm?dept =+dept+ap=1); return false; }); This is the typical click the link, database stuff happens in the background, and the page is re-rendered with new data. You wind up with a table that rows are removed from when a link is clicked. This works fine in Firefox, but no re-rendering in IE, the database calls happen,, but nothing is sent back to the browser. Any suggestions -- Scott Stewart IT Consultant/ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (919) 874-6229
RE: [jQuery] Another Why doesn't this work in IE
It's doing a DB Update on the back side, so it may not be ready until after the update completes.. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Nathan Klatt Sent: Monday, January 04, 2010 3:52 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Another Why doesn't this work in IE Is it okay if the load happens immediately after the data is posted? Or will it be loading something based on the DB actions having been successful completed? As it is it's not waiting for the post to complete before issuing the load. Nathan
[jQuery] passing variables to JQuery
I've got a lot of hard coded values in JQuery functions like the one below $(#getTOByWeek).live(click, function(){ $.ajax({ type:post, url:webapps/hr/admin/actions/act_adminHR_Handler.cfm, data:$(#toByWeek).serialize(), cache:false, success: function(){ $(#content-box).load(webapps/hr/admin/display/dsp_TOList.cfm); }, error: function(){ alert(data); } }); return false; }); I use this chunk of code repeatedly, changing the button name, form name, url loading div name, and the page that's loaded (#getTOByWeek, /hr/admin/actions/act_adminHR_Handler.cfm, #toByWeek, #content-box, /hr/admin/display/dsp_TOList.cfm respectively in this case) What I'd like to be able to do is have one code chunk that I throw variables at, instead of cutting/pasting and changing the hard coded values it would be much more elegant and make troubleshooting a lot easier. Not to mention making my .js file a helluva lot smaller. Any thoughts on how to do this? Thanks sas -- Scott Stewart IT Consultant/ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (919) 874-6229
RE: [jQuery] passing variables to JQuery
Thanks John. As far as .live goes, I'm using a very Ajax heavy template (Admintasia http://www.admintasia .com) and I've made it more so by Ajaxifying the navigation (passing the href attribute to a load function) .live is the only way that I can get a lot of this to function $(ul#navigation a).live(click, function(){ var href=$(this).attr(href); $(#content-box).load(href); return false; }); _ From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of John Arrowwood Sent: Tuesday, December 22, 2009 2:28 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] passing variables to JQuery (function($){ var defaults = { button: '#buttonId', form: '#formId', target: '#targetId', url:'/change/me', page: '/change/me/too', }; clickToLoad = function( options ) { var o = $.extend({},defaults,options); $(o.button).live('click',function(){ $.ajax({ type:'post', url: o.url, data:$(o.form).serialize(), cache: false, success: function(){$(o.target).load(o.page)}, error: function(){alert('data');}, // is this really what you want? }); return false; }); })(jQuery); Here's how you would use it: clickToLoad({ button: '#theButton', form:'#theForm', target: '#theDiv', url: '/path/to/data/handler', page:'/page/to/load', }); It's a little bit better than copy/paste/tweak. Also, by standardizing your pages so they always use the same button ID or form ID or target ID, you could put that standard ID in the defaults section. Then, on a page where it uses the defaults, you can leave those parameters out of the call. This, of course, pollutes the global namespace. You probably should define a namespace and put it there. But that is your choice. Also, re-think your use of .live(). Are you adding and removing buttons that match that criteria during the life of the page? If not, you don't need to use .live(). You can, obviously, but should you? On Tue, Dec 22, 2009 at 10:55 AM, Scott Stewart sstwebwo...@bellsouth.net wrote: I've got a lot of hard coded values in JQuery functions like the one below $(#getTOByWeek).live(click, function(){ $.ajax({ type:post, url:webapps/hr/admin/actions/act_adminHR_Handler.cfm, data:$(#toByWeek).serialize(), cache:false, success: function(){ $(#content-box).load(webapps/hr/admin/display/dsp_TOList.cfm); }, error: function(){ alert(data); } }); return false; }); I use this chunk of code repeatedly, changing the button name, form name, url loading div name, and the page that's loaded (#getTOByWeek, /hr/admin/actions/act_adminHR_Handler.cfm, #toByWeek, #content-box, /hr/admin/display/dsp_TOList.cfm respectively in this case) What I'd like to be able to do is have one code chunk that I throw variables at, instead of cutting/pasting and changing the hard coded values it would be much more elegant and make troubleshooting a lot easier. Not to mention making my .js file a helluva lot smaller. Any thoughts on how to do this? Thanks sas -- Scott Stewart IT Consultant/ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (919) 874-6229 -- John Arrowwood John (at) Irie (dash) Inc (dot) com John (at) Arrowwood Photography (dot) com John (at) Hanlons Razor (dot) com -- http://www.irie-inc.com/ http://arrowwood.blogspot.com/
RE: [jQuery] Re: load() function and IE8
I solved this by making a gut call and loaded up the JQuery 1.4a Alpha release, it seems to have solve a myriad of IE Issues. _ From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Karl Swedberg Sent: Monday, December 14, 2009 7:56 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Re: load() function and IE8 I'm not familiar with the Admintasia template. If #AP_PONum is in the DOM when you bind the event handler, then you shouldn't need live. It's only one element, so there shouldn't be a performance hit either if you just use bind. The only reason .bind() wouldn't work is if #AP_PONum isn't in the DOM when you call it (or if you later remove #AP_PONum and then add an element with id=AP_PONum later). Given those caveats, this should work: $(#AP_PONum).bind(change, function(){ ap_po = $(this).val(); $(#content-box) .load(webapps/finished_jewelry/PurReq/display/dsp_addPurchaseRequest.cfm?po Num=+ap_po); }); If that still doesn't work for you, we'd be able to help more effectively if we could see if a test page somewhere. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 14, 2009, at 9:41 AM, Scott Stewart wrote: working and supported are two different animals This is true... Back to my particular anomaly... I just replaced the live call with a bind call, and now there's nothing in Firefox either.. I'm using the Admintasia template (http://www.admintasia.com). Because of the way this is set up (or the way that I'm calling things) I've had to use the live function to get things to work. I think I'm right in assuming that the live function keeps the Ajax events alive... So is there a way to get around this? I can always add a submit button to every dropdown I'm using but that would kind of defeat the purpose. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of MorningZ Sent: Monday, December 14, 2009 9:10 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 But if it's not supported then why would it work in Firefox? working and supported are two different animals And it works because the change event does bubble events the way that works with .live(), and, no surprise here, IE doesn't bubble events the way that works with .live() but apparently some way around IE's shortcomings is in place for 1.4's implementation of .live () On Dec 14, 8:56 am, Scott Stewart sstwebwo...@bellsouth.net wrote: Thanks Karl, But if it's not supported then why would it work in Firefox? Secondly, would the bind method be a workaround? Thanks sas -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Karl Swedberg Sent: Monday, December 14, 2009 12:33 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 Hi Scott, Take a look at the documentation for the .live() method: Currently not supported: blur, focus, mouseenter, mouseleave, change, submit http://docs.jquery.com/Events/live#typefn The change event doesn't bubble in IE, so it doesn't work with .live (). jQuery 1.4 is going to provide a workaround for that, but as of 1.3.2, it's not supported. On Dec 10, 5:02 pm, Scott Stewart sstwebwo...@bellsouth.net wrote: I fat fingered the last one so... I have this piece of code $(#AP_PONum).live(change, function(){ ap_po = $(option:selected,this).val(); $(#content-box).load(webapps/finished_jewelry/PurReq/display/ dsp_addPurchaseRequest.cfm?poNum=+ap_po); }); which works like a champ in firefox. it's called from a drop down grabs the ColdFusion template and load it in a div called content-box. This does nothing in IE8, no error, no load, no love.. nothing any ideas on how to work around this?
RE: [jQuery] Re: load() function and IE8
Thanks Karl, But if it's not supported then why would it work in Firefox? Secondly, would the bind method be a workaround? Thanks sas -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Karl Swedberg Sent: Monday, December 14, 2009 12:33 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 Hi Scott, Take a look at the documentation for the .live() method: Currently not supported: blur, focus, mouseenter, mouseleave, change, submit http://docs.jquery.com/Events/live#typefn The change event doesn't bubble in IE, so it doesn't work with .live (). jQuery 1.4 is going to provide a workaround for that, but as of 1.3.2, it's not supported. On Dec 10, 5:02 pm, Scott Stewart sstwebwo...@bellsouth.net wrote: I fat fingered the last one so... I have this piece of code $(#AP_PONum).live(change, function(){ ap_po = $(option:selected,this).val(); $(#content-box).load(webapps/finished_jewelry/PurReq/display/ dsp_addPurchaseRequest.cfm?poNum=+ap_po); }); which works like a champ in firefox. it's called from a drop down grabs the ColdFusion template and load it in a div called content-box. This does nothing in IE8, no error, no load, no love.. nothing any ideas on how to work around this?
RE: [jQuery] Re: load() function and IE8
working and supported are two different animals This is true... Back to my particular anomaly... I just replaced the live call with a bind call, and now there's nothing in Firefox either.. I'm using the Admintasia template (http://www.admintasia.com). Because of the way this is set up (or the way that I'm calling things) I've had to use the live function to get things to work. I think I'm right in assuming that the live function keeps the Ajax events alive... So is there a way to get around this? I can always add a submit button to every dropdown I'm using but that would kind of defeat the purpose. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of MorningZ Sent: Monday, December 14, 2009 9:10 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 But if it's not supported then why would it work in Firefox? working and supported are two different animals And it works because the change event does bubble events the way that works with .live(), and, no surprise here, IE doesn't bubble events the way that works with .live() but apparently some way around IE's shortcomings is in place for 1.4's implementation of .live () On Dec 14, 8:56 am, Scott Stewart sstwebwo...@bellsouth.net wrote: Thanks Karl, But if it's not supported then why would it work in Firefox? Secondly, would the bind method be a workaround? Thanks sas -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Karl Swedberg Sent: Monday, December 14, 2009 12:33 AM To: jQuery (English) Subject: [jQuery] Re: load() function and IE8 Hi Scott, Take a look at the documentation for the .live() method: Currently not supported: blur, focus, mouseenter, mouseleave, change, submit http://docs.jquery.com/Events/live#typefn The change event doesn't bubble in IE, so it doesn't work with .live (). jQuery 1.4 is going to provide a workaround for that, but as of 1.3.2, it's not supported. On Dec 10, 5:02 pm, Scott Stewart sstwebwo...@bellsouth.net wrote: I fat fingered the last one so... I have this piece of code $(#AP_PONum).live(change, function(){ ap_po = $(option:selected,this).val(); $(#content-box).load(webapps/finished_jewelry/PurReq/display/ dsp_addPurchaseRequest.cfm?poNum=+ap_po); }); which works like a champ in firefox. it's called from a drop down grabs the ColdFusion template and load it in a div called content-box. This does nothing in IE8, no error, no load, no love.. nothing any ideas on how to work around this?
RE: [jQuery] Debugging in IE
There is a Firebug Lite which runs in IE, it's not nearly as good as Firebug, but it's better than nothing (or the developer tools in IE8 -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Henjo Sent: Monday, December 14, 2009 2:46 PM To: jQuery (English) Subject: [jQuery] Debugging in IE Hi list, I am wondering how to do debugging in IE the best way. I installed fiddler and work with ie8's dev tools. The problem is I have a script that runs perfectly in FF, Chrome, Safari but not in IE. There the dynamic form wizard. stops after 2 loads... This is the site I am talking about http://bit.ly/7v8pHu Thanks in advance for your tips. Henjo
[jQuery] load() function and IE8
I fat fingered the last one so... I have this piece of code $(#AP_PONum).live(change, function(){ ap_po = $(option:selected,this).val(); $(#content-box).load(webapps/finished_jewelry/PurReq/display/ dsp_addPurchaseRequest.cfm?poNum=+ap_po); }); which works like a champ in firefox. it's called from a drop down grabs the ColdFusion template and load it in a div called content-box. This does nothing in IE8, no error, no load, no love.. nothing any ideas on how to work around this?
[jQuery] Re: Licenses
The open source license applies only to the code that invokes it: IE JQuery is released under GPL and MIT, however these licenses apply only to JQuery, and the really basic jist of these licenses are give credit where credit is due, and we have some legal recourse if you don't Have your client look at who uses it, would he think for a second that the Google, CBS, Dell or Major League Baseball websites are open source? I can almost guarantee that they're not. Tomy Lucadamo wrote: Hi all! I am using jQuery in a web project for scrolls, accordions and slideshows. The client belives that the website become an open source because we are using an open source library. Is this correct? If I use an open source library all the project must be open source? How can I refuse this idea? Thanks in advance! -- Scott Stewart ColdFusion Developer Office of Research Information Systems Research amp; Economic Development University of North Carolina at Chapel Hill Phone:(919)843-2408 Fax: (919)962-3600 Email: [EMAIL PROTECTED]
[jQuery] jquery, works in FF, but no love in IE.
Hey all.. this is the rendered HTML from a ColdFusion app that I'm working on. I'm having a bear of a time trying to get the JQuery plugins functioning in IE 7. They run like a champ in Firefox 3, but in IE 7, I get the loading text but no display of the called page in the href. any help would be appreciated. script type=text/javascript src=js/jquery-1.2.6.min.js/script script type=text/javascript src=js/jquery.form.js/script script type=text/javascript src=js/jquery.metadata.js/script script type=text/javascript src=js/jquery.tablesorter.js/script script type=text/javascript src=js/jquery.ajaxContent.js/script script language=JavaScript type=text/JavaScript $(document).ready(function(){ $(.ajax).ajaxContent(); $(#category_table).tablesorter({ debug: true }); } ); /script table width=100% cellpadding=0 cellspacing=0 border=0 style=background-image:url(images/nav_bg.jpg); tr td nowrap=nowrap width=180 div id=Tab_NPP div class=leftyellow/div div class=rightyellow/div div class=middleyellowa class=ajax href=forms/frm_npp_cat.cfmNon Physician Practitioners/a/div /div /td td width=5 nowrap=nowrapimg src=images/spacer.gif width=5 height=5 border=0 //td td nowrap=nowrap width=180 div id=Tab_TA div class=leftbrown/div div class=rightbrown/div div class=middlebrowna class=ajax href=forms/frm_ta_cat.cfmTransplant Admins/a/div /div /td td width=5 nowrap=nowrapimg src=images/spacer.gif width=5 height=5 border=0 //td td nowrap=nowrap width=180 div id=Tab_FS div class=leftbrown/div div class=rightbrown/div div class=middlebrowna class=ajax href=forms/frm_fs_cat.cfmFaculty/Staff/a/div /div /td td width=5 nowrap=nowrapimg src=images/spacer.gif width=5 height=5 border=0 //td tdnbsp;/td td width=1 valign=bottomimg src=images/nav_tab_right_top.gif width=1 height=12 border=0 //td /tr /table /div table width=98% border=0 cellpadding=2 cellspacing=0 class=tablemainsub tr td colspan=4 class=tableheadersubCurrent Categories: Fiscal Year: 2009 /td /tr /table div id=ajaxContent class=box_tab_info /div/td /tr /table -- Scott Stewart ColdFusion Developer Office of Research Information Systems Research amp; Economic Development University of North Carolina at Chapel Hill Phone:(919)843-2408 Fax: (919)962-3600 Email: [EMAIL PROTECTED]
[jQuery] JQuery Plugin: ajaxContent questions
Hi all, I'm using the ajaxContent plugin, it's loaded via a ColdFusion template (header.cfm) I'm running into a couple of issues with it.. 1) It positively will not load pages into a div in IE7 (works on one page in Firefox) 2) I'm running it on multiple pages, however it will not work on one page while working on another, the code is identical with the exception of the called page. and ideas on what's going on? header js calls are here: http://cfm.pastebin.com/m4d7f1d6 working ColdFusion template is here http://cfm.pastebin.com/d5d46d6a1 non working ColdFusion template is here: http://cfm.pastebin.com/m155db21e ColdFusion function that creates tab bar is here: http://cfm.pastebin.com/m24a18393 -- Scott Stewart ColdFusion Developer Office of Research Information Systems Research amp; Economic Development University of North Carolina at Chapel Hill Phone:(919)843-2408 Fax: (919)962-3600 Email: [EMAIL PROTECTED]
[jQuery] JQuery Plugin: ajaxContent questions
Hi all, I'm using the ajaxContent plugin, it's loaded via a ColdFusion template (header.cfm) I'm running into a couple of issues with it.. 1) It positively will not load pages into a div in IE7 (works on one page in Firefox) 2) I'm running it on multiple pages, however it will not work on one page while working on another, the code is identical with the exception of the called page. and ideas on what's going on? header js calls are here: http://cfm.pastebin.com/m4d7f1d6 working ColdFusion template is here http://cfm.pastebin.com/d5d46d6a1 non working ColdFusion template is here: http://cfm.pastebin.com/m155db21e ColdFusion function that creates tab bar is here: http://cfm.pastebin.com/m24a18393 -- Scott Stewart ColdFusion Developer Office of Research Information Systems Research amp; Economic Development University of North Carolina at Chapel Hill Phone:(919)843-2408 Fax: (919)962-3600 Email: [EMAIL PROTECTED]
[jQuery] posting selected form values to parent page
Hey all, I'm a ColdFusion developer, new to jquery. I'm trying to pass a set of selected checkbox values from a form in a window opened via javascript, back to a text box in a form on the parent (opener) page. Any help would be greatly appreciated.. Thanks Scott Stewart