[jQuery] Re: Is it possible to hide the destination URL of a link?

2009-07-31 Thread Ricardo
You can't fake URLs. If you could, you could make a link that reads http://www.google.com link pointing to your personal page (or worse). Is it a problem that it's obvious it's a delete request? Isn't that what the user wants? You should use a form for that, where you can have the ID for

[jQuery] Re: Is it possible to hide the destination URL of a link?

2009-07-31 Thread Adrian Lynch
I think you could do something like the following: a href=whatever you want in here class=id-123Delete/a script type=text/javascript $(a).click(function() { var id = $(this).attr(class).split(-)[1]; this.href = /?delete=trueid= + id; }); /script

[jQuery] Re: Is it possible to hide the destination URL of a link?

2009-07-31 Thread Web Specialist
In your server side i'll create an encripted string to avoid user edition in the url. Looks like this: http://mysite.com?delete=trueid=123encriptedURL=WXObT4eqDq+8iij5MksGDdaqhttp://mysite.com/?delete=trueid=123encriptedURL=WXObT4eqDq+8iij5MksGDdaq encriptedURL variable contains the string

[jQuery] Re: Is it possible to hide the destination URL of a link?

2009-07-31 Thread Sandeep Gonivada
you can use post method to achieve it. http://docs.jquery.com/Ajax/jQuery.post On Fri, Jul 31, 2009 at 5:19 AM, Anoop kumar V anoopkum...@gmail.comwrote: I have a menu, on which is a delete link. The URL of the link is quite plain: http://mysite.com?delete=trueid=123 (quite obvious I think

[jQuery] Re: Is it possible to hide the destination URL of a link?

2009-07-30 Thread rupak mandal
Hi anoop I think you can store the required data in session. On Fri, Jul 31, 2009 at 5:19 AM, Anoop kumar V anoopkum...@gmail.comwrote: I have a menu, on which is a delete link. The URL of the link is quite plain: http://mysite.com?delete=trueid=123 (quite obvious I think that the request is

[jQuery] Re: Is it possible to hide the destination URL of a link?

2009-07-30 Thread Anoop kumar V
Yes - but I would not know the id until the user clicks on the link. There are about 20 other links, each has an id. The user can hover on any link, a pop up appears with the Delete link, clicking on it will call a URL which is basically the same page (it is a jsp page) which see that the

[jQuery] Re: Is it possible to hide the destination URL of a link?

2009-07-30 Thread rupak mandal
you can also use form submit. onclick event you can reset the value of form element and submit the form. On Fri, Jul 31, 2009 at 11:02 AM, Anoop kumar V anoopkum...@gmail.comwrote: Yes - but I would not know the id until the user clicks on the link. There are about 20 other links, each has an