[jQuery] Re: Superfish Dropdown BG Problem
Ron, That code goes into whatever file you have your superfish css in - normally superfish.css. In there you will probably find the line: .sf-menu li { background: #BDD2FF url('../images/ normal_bg.png') repeat-x 0 0; } or similar - at least the .sf-menu li {} should be there. Prepend that line with the id of your element (#pillmenu) and it should look something like this: #pillmenu .sf-menu li { background: #BDD2FF url('../images/ normal_bg.png') repeat-x 0 0; } I think =) Regards, Mickster On Feb 1, 4:59 pm, "levine@gmail.com" wrote: > Thanks for the heads up on turning off the call. However, I still > don't have any idea of where to put the code that Joel is talking > about. Does this go into the Rhuk_milkyway css file??? > > Regards, > Ron > > On Feb 1, 2:22 am, bklyn2cali wrote: > > > Joel, > > > I've got this working now, thank you. > > > One last issue: the SuperSubs plugin works only on the first sub-sub- > > nav. I'm not sure why.http://www.stcyril.net/site/ > > > It seems like there is some overflow issue since the background > > repeats all the way to the edge of the border. > > > I'm so close to getting this done, just this issue, and also more > > minor is that the dropshadow no longer appears. > > > Thanks for your help. It is much appreciated. > > > Sean > > > On Jan 31, 6:08 am, Joel Birch wrote: > > > > Hello, > > > > This is the exact same issue someone else had just the other day, and > > > they were also a Joomla user. Your problem is figure out by selecting > > > the menu li element using Firebug. The Superfish background rule is > > > being overridden by the #pillmenu li li rule which is in the green.css > > > file. The reason this rule gets precedence over the Superfish CSS is > > > because it uses an id in the selector, which trumps the .sf-menu class > > > selector. > > > > Interestingly, 'pillmenu' was the exact same id that was involved with > > > the other Joomla user's issue, so I assume it must be part of Joomla's > > > templates. Solve your problem by adding the id to your Superfish > > > selector in order to increase its 'specificity', like this: > > > > #pillmenu .sf-menu li { background: #BDD2FF url('../images/ > > > normal_bg.png') repeat-x 0 0; } > > > > Joel Birch.
[jQuery] Re: SFBrowser updated to 2.5.1
Found it. The config.php wasn't included but I didn't get any error message from my php... So in index.php, I changed line 10 to include the config.php before the init.php: Works and looks really good! Keep up the good job! On Nov 21, 5:17 pm, Mickster <[EMAIL PROTECTED]> wrote: > Using Firefox 3, PHP 5.2.2. Firefox is quiet, says nothing. > > But don't worry about it - there's obviously something wrong on my > side when not even the constants work - your code is good! > I'll look into it again later! > > Leave the drawing board and have a beer at Rembrandtpleijn(?) > instead :) > > Thanks! > > On Nov 21, 5:04 pm, Sjeiti <[EMAIL PROTECTED]> wrote: > > > I checked it here on two webservers :-( > > What version php are you running? > > And if you have Firebug installed, what does the console say? > > or maybe... > > ah... bloody... you must be running IE > > The last version ran just fine in IE so I didn't bother to check > > (Firefox and Chrome were working so I presumed...) > > oh well... back to the drawing board :.( > > > On Nov 21, 4:37 pm, Mickster <[EMAIL PROTECTED]> wrote: > > > > Thanks for your quick answer! > > > > I've downloaded it but I can't get it to work - for some reason the > > > define constants doesn't work (suspect my setup has a bad day :) ). > > > Anyhow, I changed all the constants and got all js-files to load. > > > But when I click the examples, nothing happen - no errors, no > > > nothing... > > > > Most likely something is wrong with my setup, so I'll keep checking... > > > > Thanks!
[jQuery] Re: SFBrowser updated to 2.5.1
Using Firefox 3, PHP 5.2.2. Firefox is quiet, says nothing. But don't worry about it - there's obviously something wrong on my side when not even the constants work - your code is good! I'll look into it again later! Leave the drawing board and have a beer at Rembrandtpleijn(?) instead :) Thanks! On Nov 21, 5:04 pm, Sjeiti <[EMAIL PROTECTED]> wrote: > I checked it here on two webservers :-( > What version php are you running? > And if you have Firebug installed, what does the console say? > or maybe... > ah... bloody... you must be running IE > The last version ran just fine in IE so I didn't bother to check > (Firefox and Chrome were working so I presumed...) > oh well... back to the drawing board :.( > > On Nov 21, 4:37 pm, Mickster <[EMAIL PROTECTED]> wrote: > > > Thanks for your quick answer! > > > I've downloaded it but I can't get it to work - for some reason the > > define constants doesn't work (suspect my setup has a bad day :) ). > > Anyhow, I changed all the constants and got all js-files to load. > > But when I click the examples, nothing happen - no errors, no > > nothing... > > > Most likely something is wrong with my setup, so I'll keep checking... > > > Thanks!
[jQuery] Re: SFBrowser updated to 2.5.1
Thanks for your quick answer! I've downloaded it but I can't get it to work - for some reason the define constants doesn't work (suspect my setup has a bad day :) ). Anyhow, I changed all the constants and got all js-files to load. But when I click the examples, nothing happen - no errors, no nothing... Most likely something is wrong with my setup, so I'll keep checking... Thanks! On Nov 21, 3:26 pm, Sjeiti <[EMAIL PROTECTED]> wrote: > No example page (yet). Got a screenshot here > though:http://www.sjeiti.com/wp-content/uploads/2008/11/sfbrowser.png > But if you download it, it should work right away. There are three > examples on the bottom of the root-index page.
[jQuery] Re: SFBrowser updated to 2.5.1
Hi, do you have any example page somewhere? Would be nice to see before I download and test... Regards, Mickster On Nov 21, 12:27 pm, Sjeiti <[EMAIL PROTECTED]> wrote: > http://plugins.jquery.com/project/SFBrowser > SFBrowser is a file browsing and upload plugin. Returns a list of > objects with additional information on the selected files > (filesize,date,width,height). Features: ajax file upload, > localisation, sortable file table, file filtering, file renameing, > file duplication, file download, file/folder context menu, folder > creation, image resizing, image preview, text/ascii preview, multiple > files selection, inline or overlay browsing.
[jQuery] Re: help with $.getJSON() ... just cant figure it out
Hi Alex, maybe this tutorial can give you a start: http://www.prodevtips.com/2008/08/15/jquery-json-with-php-json_encode-and-json_decode/ Personally, I use the script from here: http://www.json.org/js.html But I don't think you really need an extra parser - $.getJSON should already parse the response text... Good luck! Mickster On Oct 13, 4:21 pm, Alex Weber <[EMAIL PROTECTED]> wrote: > first off, i dont get the difference between using $.ajax, $.post or > $.get instead since the concept is the same afaik: you send a request > and receive a response. the only difference in this case is that the > response would be a JSON object... right? > > anyway... i've managed to generate tons of JSON objects of all sorts > but haven't been able to come up with a decent parser thats not uber > specific to each case... > > does anyone have any tips or a more generic kind of jQuery JSON parser > and some help on how to put it all together? > > thanks!! > > -Alex
[jQuery] Re: How can I make sure one AJAX call returns before another?
Maybe this is something for you: http://welcome.totheinter.net/2008/09/21/bundled-and-ordered-asynchronous-ajax/ Haven't read it myseld yet, but judging from the subject of the article, it might help you. I found it on the jQuery-tweet here: http://twitter.com/jquery Regards, Mickster On Sep 22, 7:51 pm, Namlet <[EMAIL PROTECTED]> wrote: > I have several AJAX calls. Most of them retrieve values for drop-down > lists and one fills in the data. Of course, unless the drop down > lists are fully loaded, the data filler doesn't select them properly. > Is there anyway to trigger the data filler after they are complete > with more sophistication than setTimeout? > > BTW, I've tried ajaxStop but that causes an infinite loop since the > data filler triggers it again. > > Thanks!
[jQuery] Re: Properties escaped when sending JSON to PHP?
Hi Tony, Thanks for your answer. Yes, you're right, magic quotes is on - I should have thought about that... Regards, Mickster On Aug 31, 9:55 am, Tony <[EMAIL PROTECTED]> wrote: > Hello, > usually this comes from settings on PHP. > Before get the param from php you should check if magic quotes are on. > If the are on you should apply stripslashes on this parameter. > Regards > Tony > > On Aug 31, 1:46 am, Mickster <[EMAIL PROTECTED]> wrote: > > > Hi there, > > > I've just spent an hour trying to figure out why my JSON didn't work > > on my server. It works now, but I'm a bit confused about the solution > > - maybe you guys have som input: > > My Object: > > var example = { > > id: 1, > > title: "JSON Möchtegern"} > > > I use the json2.js fromwww.json.org: > > json = JSON.stringify(example); > > This produces a seemingly correct "JSON-string": > > {"id":"1", "title":"JSON Möchtegern"} > > > I then send my data with $.ajax, using Type: Post. > > Firebug tells me the string still looks like the one above. > > > But when processing it with (PHP) json_decode($_POST['json'] the only > > response I got was an annoying "NULL". > > So I checked the string and it now looked like this: > > {\"id\":\"1\", \"title\":\"JSON Möchtegern\"} > > > So I ended up str_replace:ing all the \'s out of there and now it > > works. > > > But for all of you patient enough to read this long post, here's my > > question: > > Are you really supposed to replace all the \'s on the server side, or > > is there some option I'm missing in my AJAX-call? contentType? > > > Thanks! > > Mickster
[jQuery] Properties escaped when sending JSON to PHP?
Hi there, I've just spent an hour trying to figure out why my JSON didn't work on my server. It works now, but I'm a bit confused about the solution - maybe you guys have som input: My Object: var example = { id: 1, title: "JSON Möchtegern" } I use the json2.js from www.json.org: json = JSON.stringify(example); This produces a seemingly correct "JSON-string": {"id":"1", "title":"JSON Möchtegern"} I then send my data with $.ajax, using Type: Post. Firebug tells me the string still looks like the one above. But when processing it with (PHP) json_decode($_POST['json'] the only response I got was an annoying "NULL". So I checked the string and it now looked like this: {\"id\":\"1\", \"title\":\"JSON Möchtegern\"} So I ended up str_replace:ing all the \'s out of there and now it works. But for all of you patient enough to read this long post, here's my question: Are you really supposed to replace all the \'s on the server side, or is there some option I'm missing in my AJAX-call? contentType? Thanks! Mickster
[jQuery] Re: Understanding JSON
Here's an article about JSON "in both directions" - shows how to send JSON from jQuery to the server and back (and how to handle the server response with jQuery). http://www.prodevtips.com/2008/08/15/jquery-json-with-php-json_encode-and-json_decode/ //Mickster On 20 Aug., 10:31, andrea varnier <[EMAIL PROTECTED]> wrote: > On 20 Ago, 09:35, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > > > For example, if you do an ajax request to a page.php that do a query to > > the db, and return the data, you'll user the function json_encode (php5, > > or PEAR on php4) to write the response for javascript. > > if you cannot use that function (older version of PHP, or no modules > installed), you can simply write (echo) the json output. > like: > > echo "user = { 'firstName': 'John', /* and so on... */"; > > and jQuery will still get the data correctly
[jQuery] Re: Forms: Convert spaces to +'s, and how to GET only certain form elements?
I think you can use .replace(/%20/g, "+") after encodeURIComponent(String) to replace the %20 with a +. Like: var encodedString = encodeURIComponent("dog cat horse whale"); encodedString.replace(/%20/g, "+"); Good Luck! //Mickster On Jul 20, 3:24 am, spicyj <[EMAIL PROTECTED]> wrote: > encodeURIComponent("dog cat horse whale")
[jQuery] Re: jquery + tinymce
Hmm do you use document.domain anywhere in your code? I think that messed it up for me... I used to load tinyMCE on different subdomains, but with only one installation of Tiny, but I changed to one domain and removed the document.domain... Maybe that can give you a clue... Try posting a question in the TinyMCE forum otherwise... On Jun 28, 10:36 am, "Salvatore FUSTO" <[EMAIL PROTECTED]> wrote: > just noted: if i use an older version of the editor, 1.240, all is ok. > any suggestion? > salvatore > > - Original Message - > From: Salvatore FUSTO > To: jquery-en@googlegroups.com > Sent: Saturday, June 28, 2008 10:13 AM > Subject: [jQuery] Re: jquery + tinymce > > yes, > mce and jquery works fine together, in HTML page: > if i have an html page, ie mypage.html, it runs correctly, but if i have > the same page as a cfm one, ie mypage.cfm, and i try to view it writing in > address bar of my browser: > http://localhost:8500/views/mypage.cfm > > i get that errors > > as anyone experience this? > > - Original Message - > From: Sam Sherlock > To: jquery-en@googlegroups.com > Sent: Friday, June 27, 2008 10:38 PM > Subject: [jQuery] Re: jquery + tinymce > > same I load jquery first then mce, from a quick google that error seems > to be caused in ff when using mce on ports other 80 > > have you tried the plugin for mce? > > 2008/6/27 Mickster <[EMAIL PROTECTED]>: > > Hi Salvatore, > > I'm afraid I don't have a solution for you, but I just wanted to > assure you that jQuery and TinyMCE do work together - I use them > together without errors. > Not sure if it matters (think I saw a comment about it somewhere > though), but in which sequence do you load the scripts? I load jQuery > first and TinyMCE at the end... > > Good luck! > > Regards, > Mickster > > On Jun 27, 7:24 pm, "Salvatore FUSTO" <[EMAIL PROTECTED]> wrote: > > Hi all, > > i'm using jquery library in my projects, and it works fine. > > in my last app, i've to implement a page taht acts as an html editor, > so i used the tiny mce library: i have already used tinymce, but this is the > first time with jquery, and they seem not to work together. > > first of all, at start of my app i get a js error, viewed in ff > console: Illegal document.domain value" code: "1009 > > second, in the page where i try to transform a textarea in an html > editor > > > > > > tinyMCE.init({ > > > theme : "advanced", > > > mode : "textarea", > > > file_browser_callback : "fileBrowserCallBack" > > > /*language : "it"*/ > > > }); > > > > > > i have another js error: tinyMCE has no properties > > As anyone encontoured and solved? > > regards > > salvatore > > __ Informazione NOD32 3224 (20080627) __ > > Questo messaggio è stato controllato dal Sistema Antivirus NOD32 > http://www.nod32.it
[jQuery] Re: jquery + tinymce
Hi Salvatore, I'm afraid I don't have a solution for you, but I just wanted to assure you that jQuery and TinyMCE do work together - I use them together without errors. Not sure if it matters (think I saw a comment about it somewhere though), but in which sequence do you load the scripts? I load jQuery first and TinyMCE at the end... Good luck! Regards, Mickster On Jun 27, 7:24 pm, "Salvatore FUSTO" <[EMAIL PROTECTED]> wrote: > Hi all, > i'm using jquery library in my projects, and it works fine. > in my last app, i've to implement a page taht acts as an html editor, so i > used the tiny mce library: i have already used tinymce, but this is the first > time with jquery, and they seem not to work together. > first of all, at start of my app i get a js error, viewed in ff console: > Illegal document.domain value" code: "1009 > second, in the page where i try to transform a textarea in an html editor > > > > tinyMCE.init({ > > theme : "advanced", > > mode : "textarea", > > file_browser_callback : "fileBrowserCallBack" > > /*language : "it"*/ > > }); > > > > i have another js error: tinyMCE has no properties > As anyone encontoured and solved? > regards > salvatore
[jQuery] Re: Jquery browse dialog
Hi, maybe you can use swfupload? http://demo.swfupload.org/simpledemo/index.php Hit the browse button and use ctrl/shift to choose multiple files... There are more demos available too... Good luck! Regards, Mickster On May 29, 12:05 am, Fred <[EMAIL PROTECTED]> wrote: > Hi guys, I have to open a browse dialog window that allows selection > of multiple files, basically for selection of multiple files to > upload. Any ideas? > Thanks.