• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HREF submit without javascript

 
Venkataramanan Amirthalingam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In our application, we have a requirement to put HREF's and on clicking it, it should take to next action with few parameters. We do not want to append parameters in HREF using '?'. Also we should not be using javascript/CSS to submit the form.

Is there a way to submit a HREF without javascript.

Thanks,
venkat
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there are parameters, have you considered making this a FORM submit button (which can look pretty similar to a regular HREF link if you style it that way) ?
 
Venkataramanan Amirthalingam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

The constraint is, we should not be using CSS. So how to address this?

Thanks
--venkat
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Venkataramanan Amirthalingam:
Hi Ulf,

The constraint is, we should not be using CSS. So how to address this?

Thanks
--venkat


Why do you think the HTML Form tag has anything to do with CSS? Just do what Ulf said. If you can't, then you are out of luck. Without query parameters (?foo=1&foo=2) there is no way to get an anchor tag to send values to a different page.
 
Venkataramanan Amirthalingam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If i put a submit button, then i need to do some styling to make it look like <a> tag. Without CSS, can we achieve this styling? Also, if i put submit button, then the user will not know which all links he previously visited. Am i right?

Is there a way to solve?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can almost understand the proscription against JavaScript -- it could appropriate in some environments -- but what sane reason is there for prohibiting CSS?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34860
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some places have a requirement that the page should be usable without CSS. (for blind or vision impaired readers.) However, these users could still click on the button via the form submit.
 
Venkataramanan Amirthalingam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The reason for not using CSS is, our application should be accessible from mobile device. And not all mobile devices support javascript or CSS. This is where we got struck.. and i am searching for solution
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the sort of thing that should be mentioned in your first post.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Venkataramanan Amirthalingam:
We do not want to append parameters in HREF using '?'.


Why exactly not?
 
Nitin Pathak
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe if you can use the images in your web (M) pages, you can try submitting the form through input type "image":

This is taken from one of my running applications using Django.
[ December 16, 2008: Message edited by: Nitin Pathak ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic