Re: [jQuery] Just discovered something

2009-10-29 Thread lionel28
Thanks for the tip, dabear. "do" is a very important variable for me as I develop in vbulletin. With their security token in order to bypass it, the action must be a "do" -- View this message in context: http://www.nabble.com/Just-discovered-something-tp26110812s27240p26112172.html Sent from th

[jQuery] Just discovered something

2009-10-29 Thread lionel28
I am sure most of you guys already know it, but I just found out that IE does not like the word "do" I was doing an ajax called and I had data: { do : "uploadgame" and I kept on getting that error expected identifier, string or number, Once I changed that 'do' into something e

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread lionel28
hummm, not that simple. It's multiple radios with multiple values so how to get id and value of selected one? lionel28 wrote: > > Thanks for replying. > I am going to try your code. > > > Shawn Grover wrote: >> >> >> in short, no. Not that

[jQuery] Re: Ajax populating select box based on radio selected

2009-10-13 Thread lionel28
json array of objects, a simple > array of text values (as hinted at in the sample code), or even xml. > Whatever you pick for the results format dictates what you have to do > with the results to get it into your select list. > > The flexibility and diversity of the approac

[jQuery] Ajax populating select box based on radio selected

2009-10-13 Thread lionel28
Hello, Is there a script that allows to get values to populate a select box via ajax when a radio button is clicked? Thank you. -- View this message in context: http://www.nabble.com/Ajax-populating-select-box-based-on-radio-selected-tp25869309s27240p25869309.html Sent from the jQuery General

[jQuery] Re: Getting Last ID

2009-09-30 Thread lionel28
Thanks. The first row is always there. It cannot be removed if it's only one row. However, I just realized that the code that I am using is not jQuery function addNewRow(newId) { var tbody = document.getElementById('list').tBodies[0]; var lastRow = tbody.rows.length - 1; var newId

[jQuery] Getting Last ID

2009-09-30 Thread lionel28
Hi, I am dynamically creating/removing entire rows in a form. function addNewRow(newId) { var tbody = document.getElementById('list').tBodies[0]; var lastRow = tbody.rows.length - 1; var newId = lastRow; var row = document.createElement('tr'); row.setAttribu

[jQuery] Re: How to handle dynamic clicks?

2009-09-29 Thread lionel28
Nice! Thank you. I have one last issue. I am using tinymce for all the textareas. When I click on the edit link, that displays and allows me to do the ajax edit and on submit displays the change. Unfortunately, since the tinymce was already loaded when the page was first loaded, if I click on

[jQuery] Re: Ajax post on save dialog box

2009-09-29 Thread lionel28
hi, Firebug was telling me that editcomment was not defined and the dialog was freezing. So I put editcomment, cid and pagetext in bracket and the dialog box updated the div, closed but database was not updated Thanks lionel28 wrote: > > Hi, > > I am loading tiny Mce editor

[jQuery] Re: How to handle dynamic clicks?

2009-09-29 Thread lionel28
+ cid).submit(function() { $(this).ajaxSubmit(options); return false; }); lionel28 wrote: > > Charlie, > > Thank you very much. > I was able to do a split so I get actual value from your code and all is > fine. > > I do whatever I want with php,

[jQuery] Ajax post on save dialog box

2009-09-28 Thread lionel28
Hi, I am loading tiny Mce editor in a dialog box which updates the div on save I am trying to save in database 'Save Comment': function() { var content = tinyMCE.get('editor').getContent(); $.ajax({ type: "POST", url: "comments.php", data: "do=editcomment&c=+ cid +&pagetext=+ content +" });

[jQuery] Re: How to handle dynamic clicks?

2009-09-28 Thread lionel28
t; > $(document).ready(function() { > $('a[id^=doedit_]').click(function() { > alert(this.id); <-- shows that you have a handle on the > specific > element that triggered the click > return false; > }); > }) > > > On Mo

[jQuery] How to handle dynamic clicks?

2009-09-28 Thread lionel28
Hi, I am trying to get the correct div from a form I did (I intentionally left the brackets open so it displays here) span id="doedit_$comment[commentid]"> a onclick= "return getCommentID($comment[commentid]) and for the jQuery $(document).ready(function() { function getCommentID(cid) { $(

[jQuery] Re: jquery upgrade issue

2009-08-21 Thread lionel28
Sorry to revive that old thread. I have the same problem but in a peculiar manner. on my desktop, the script runs fine in all browsers. in one site on my server it runs well in IE but throws that same error on FF I place the exact same script in another site on same server and all is fine for a

[jQuery] Re: Interaction in tabs

2009-08-18 Thread lionel28
Thank you Charlie. lionel28 wrote: > > Hello, > > I have 6 tabs. Each one of them contain many elements with class 'column' > > I'd like to know, when a tab is selected, how many such elements in that > selected tab. > > no matter how I tried, it

[jQuery] Re: Dynamically Adding Portlets Columns

2009-08-17 Thread lionel28
ok, I figured it out. I was supposed to connectWith also. lionel28 wrote: > > Hi, > > I have the code below, when I put it directly in the html, I am able to > drag and drop into it. > When I try to add it dynamically, and I look in Firebug, the added column > is identi

[jQuery] Dynamically Adding Portlets Columns

2009-08-17 Thread lionel28
Hi, I have the code below, when I put it directly in the html, I am able to drag and drop into it. When I try to add it dynamically, and I look in Firebug, the added column is identical with what I added manually in the html, yet, it will not allow me to drag and drop into it. Are the sortable

[jQuery] Re: Interaction in tabs

2009-08-17 Thread lionel28
You totally confuse me here. How do I know a tab is selected? When I click on it. All tabs have the same class ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> -- View this message in context: http://www.nabble.com/Interaction-in-tabs-tp25009915s27240p

[jQuery] Interaction in tabs

2009-08-17 Thread lionel28
Hello, I have 6 tabs. Each one of them contain many elements with class 'column' I'd like to know, when a tab is selected, how many such elements in that selected tab. no matter how I tried, it gives me the right count on the first one selected and start incrementing them for all subsequent se

[jQuery] Variable in tabTemplate

2009-08-15 Thread lionel28
Hi, Is there a special syntax for using a variable in tabTemplate? I tried load: function(event, ui) { var selected = $tabs.tabs('option', 'selected') + 1; $('#selectedtab').get(0).value = selected;

[jQuery] Re: Drag and Drop in Tabs

2009-08-13 Thread lionel28
Thank you guys. Yes it works fine. The ajax that is being loaded has no head. I got it to work by loading up the javascript at the bottom of the ajax table. Works fine with Firefox, but takes a very long time to load in IE 8.0. The javascript is barely 2k lionel28 wrote: > > Hi, >

[jQuery] Drag and Drop in Tabs

2009-08-12 Thread lionel28
Hi, I am using jQuery Tabs to make an ajax call for each tab when clicked. The ajax that displays is like inettuts. 3 or 4 columns of widgets that can be dragged and dropped. The problem that I am having, when I put the html of the result directly in the main page, it works as designed. When I

[jQuery] Drag and Drop in Tabs

2009-08-12 Thread lionel28
Hi, I am using jQuery Tabs to make an ajax call for each tab when clicked. The ajax that displays is like inettuts. 3 or 4 columns of widgets that can be dragged and dropped. The problem that I am having, when I put the html of the result directly in the main page, it works as designed. When I

[jQuery] show() hide()

2009-07-21 Thread lionel28
I have this simple code, slides down and up smoothly in Firefox but is choppy in IE when I added the hide() and show(). Please what is wrong wih it? $(document).ready(function() { $("#open").click(function(){ $("#hideme").hide("fast"); $("div#panel").slid

[jQuery] How to exit from a div?

2009-06-10 Thread lionel28
Hello, I have an ajax call that I display dynamically in a div ($content). $content The results of $contents display in divisions Feeds Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit

[jQuery] Re: Deleting an entire tr

2009-03-25 Thread lionel28
Thanks for replying. I managed to get it. Berny Cantos wrote: > > > Try using: > > $(this).parents('tr:eq(0)') > > or if using jQuery 1.3 or newer, you can use this one too: > > $(this).closest('tr') > > On 24 mar, 10:59, lionel28 wr

[jQuery] Deleting an entire tr

2009-03-24 Thread lionel28
Hello, I am trying to remove an entire tr row. Please, someone help me. This is what I use # $(document).ready(function() { $('a.delete').click(function(e) { e.preventDefault(); var parent = $(this).parent('td').parent('tr'); $.ajax({

[jQuery] show/hide content

2009-02-15 Thread lionel28
Hi, I once saw a jquery script where you can display content based on count 5 | 10 | 20 It defaults on 5 items. When you click on 10 it displays 10 items and so on Can someone please point me to a link? Thank you -- View this message in context: http://www.nabble.com/show-hide-content-tp22

[jQuery] Sort Dilemna With Asmselect

2009-02-09 Thread lionel28
Hello, I am using this very near perfect plugin http://www.ryancramer.com/projects/asmselect/examples/example1.html The problem that I am having, after sorting the options, I serialize them and put them in table A in database. The cities are coming from Table B and themselves are sorted alphabe

[jQuery] Which Jquery Plugin can do that

2009-01-25 Thread lionel28
http://sitebuilder.websitewelcome.com/Wizard/Pages http://sitebuilder.websitewelcome.com/Wizard/Pages Hello everyone, Please go to that link and click on "Pages" They are using prototype on that site, but I rather use Jquery. When you check a page checkbox, you are able to send it to the right

[jQuery] edit in place and linked item

2008-09-13 Thread lionel28
hello, I have a linked title and I wish to use edit in place by Malsup to edit it. How can I do so with just the title without including the link? I made the td the class, so when you double click anywhere in it, the box opens. But the box displays (opened tag a) id="2" href="javascript:create

[jQuery] Re: Ajax and array

2008-09-05 Thread lionel28
No one can help me? lionel28 wrote: > > No one can help? > > Hello, I am posting successfully an array, but for some reason, the first > element of the array is always missing. > > in the text box I get 7 items: > topic[]=2&topic[]=1&topic[]=3&topic[]=4

[jQuery] Ajax and array

2008-09-05 Thread lionel28
Hello, I am posting successfully an array, but for some reason, the first element of the array is always missing. in the text box I get: topic[]=2&topic[]=1&topic[]=3&topic[]=4&topic[]=5&topic[]=6&topic[]=7 the response box displays 1,3,4,5,6,7 (missing '2'). If I change the order, then the new

[jQuery] Please help me correct this

2008-01-11 Thread lionel28
I am new to jquery. After a lot of trial and errors, I managed to accomplish what I wanted: beforesubmitting to a form, I check for php errors and then I display them in a div above the submit button. Works great. But the problem that I am having, if there are no errors, the form submits as wanted