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
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
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
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
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
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
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
7 matches
Mail list logo