Re: [jQuery] Show/hide div based on URL parameter

2010-02-17 Thread dikker
Thank you Andrei! Nice and simple, very well! Andrei Eftimie wrote: script type=text/javascript id=demoscript $(function(){ if (document.location.href.indexOf('showdiv=yes') 0) $(#display).show(); }); /script On Sat, Feb 13, 2010 at 5:37 PM, dikker

[jQuery] JQuery Flot, beginners problem

2010-02-17 Thread 83nini
Hi all, I'm an absolute beginner in JQuery, and i need your kind help on this... i have an mvc project in asp.net, visual studio 2010 i added the jquery.js and jquery.flot.js files in the master page, then i went to HomeController.cs and wrote the following method: public ActionResult Example()

[jQuery] show input field base on selected option

2010-02-17 Thread 123gotoandplay
How do i show a input field only when a certain option is selected? and hide if it isn't selected regards

[jQuery] How do i populate two dropdown menus?

2010-02-17 Thread 123gotoandplay
Hi How do i populate dropdown menuB depending on the selected option in dropdown menuA??? I am parsing the menu data from a mysql db with php??

[jQuery] Re: show input field base on selected option

2010-02-17 Thread 123gotoandplay
this is what i have now $('#numOfHours').hide(); $('#type').change(function() { if($('#type :selected').text() == parttime) { $('#numOfHours').show(); } else { $('#numOfHours').hide(); } On Feb 17, 2:08 pm, 123gotoandplay wesweatyous...@gmail.com

[jQuery] Re: show input field base on selected option

2010-02-17 Thread 123gotoandplay
solution: $('#type').change(function() { if($('#type :selected').val() === parttime) { $('#numOfHours').show(); } else { $('#numOfHours').hide(); } })

Re: [jQuery] Re: show input field base on selected option

2010-02-17 Thread Jonathan Vanherpe (T T nv)
maybe something like this? $(function(){ $('#type').change(function(){ var selected = $(this).children().filter(':selected'); if(selected.val()=='parttime'){ $('#numOfHours').show(); }else{ $('#numOfHours').hide(); } }); }); This is

[jQuery] Response converted to entities after file upload

2010-02-17 Thread Lay András
Hi! If i have a file upload input in my form, after submit the html codes in the response data converted to their entities: http://bogex.hu/jquery_upload_test.php How can I prevent this? Thank you! Lay

Re: [jQuery] Response converted to entities after file upload

2010-02-17 Thread Randall Morgan
Are you using a Php framework? If so, does it do output filtering? If not, can you show me your Php code? Randy 2010/2/17 Lay András laysoftjqu...@gmail.com: Hi! If i have a file upload input in my form, after submit the html codes in the response data converted to their entities:

[jQuery] jQuery 1.4+ and FF JSON.parse() error

2010-02-17 Thread Scott
Greets. While upgrading from jQuery 1.2.6 to 1.4.1 I encountered a problem with some of the JSON data returned to my application. According to json lint, it was well formed data but was producing an error. The problem was tracked down to the JSON.parse() function in FF 3.5.7 on Linux x86. The

Re: [jQuery] Response converted to entities after file upload

2010-02-17 Thread Lay András
Hello! On Wed, Feb 17, 2010 at 5:56 PM, Randall Morgan rmorga...@gmail.com wrote: Are you using a Php framework? If so, does it do output filtering? If not, can you show me your Php code? It's a simple PHP code, without any framework. The source code visible, you can simply copy, and check it

Re: [jQuery] Response converted to entities after file upload

2010-02-17 Thread Randall Morgan
A couple of things to try. First, run phpinfo() and look through the output for anything that could be filtering the output. Second, try using double quotes or echo or print() in place of die() and follow with exit. die() does not escape html (at least not on my servers) so I suspect that

[jQuery] Get font-family from iframe

2010-02-17 Thread jordanrynard
I'm trying to retrieve the current font from an element that is within an iframe... unsuccessfully. From within the document itself I can retrieve the font just fine using the following: $(document).ready(function(){ var getFontFamily = $(#get_font_of_this).css(font-family);

Re: [jQuery] Response converted to entities after file upload

2010-02-17 Thread Randall Morgan
You may want to remove the $header method. PHP should send the content-type text/html header by default. Randy On Wed, Feb 17, 2010 at 11:41 AM, Randall Morgan rmorga...@gmail.com wrote: A couple of things to try. First, run phpinfo() and look through the output for anything that could be

Re: [jQuery] Get font-family from iframe

2010-02-17 Thread Jonathan Vanherpe (T T nv)
does every browser do that? jordanrynard wrote: I'm trying to retrieve the current font from an element that is within an iframe... unsuccessfully. From within the document itself I can retrieve the font just fine using the following: $(document).ready(function(){ var

Re: [jQuery] Get font-family from iframe

2010-02-17 Thread Jonathan Vanherpe (T T nv)
I didn't see you posted azn example page. When testing it, I found that both Opera and Chromium returned the correct thing but they format it differently. Opera alerts Comic Sans MS [microsoft]. I actually like how Opera alerts the font you're actually using instead of the whole font stack,