Forums / General / Button / link question..

Button / link question..

Author Message

Bengt Skogly

Sunday 25 January 2004 7:59:33 am

This code makes a "Sign the guestbook" button, how can I make this to be just a link (doing the same thing as the button)?

<form method="post"
action={"content/action/"|ezurl}>
<input class="button"
type="submit"
name="NewButton"
value="Sign the guestbook" />
<input type="hidden"
name="ClassID"
value="18" />
<input type="hidden"
name="NodeID"
value="{$node.node_id}" />
</form>

Balazs Halasy

Monday 26 January 2004 2:21:49 am

It is unfortunately not possible to use link instead button in this case. You have to use a button since several parameters are to be sent from the browser to the server (hidden variables). According to Bård it might be possible to hack in a link using some magical Javascript code. Good luck!

Balazs

Claus Jensen

Monday 26 January 2004 3:23:15 am

Hello,
What you could do instead of a regular button is to "hide" your html-link as an "image-button", ie:
<input type="image" src="/design/user/images/go.gif" name="NewButton" />
Just make the go.gif look like your link. Its another workaround that works.

But what would be really neat is if one could choose to send variables into ez by GET query (i.e: http://ez.no/node/view/full/147?var=hello&name=world). I dont know why they have not made this possible, or maybe they have and its just I dont know how, but that would be real nice!

regards,
claÜs

Harry Oosterveen

Monday 26 January 2004 3:30:48 am

You can make it look like a link, using the stylesheet:

input.button {
background-color: transparent;
border: none;
color: #0000aa;
text-decoration: underline;
cursor: pointer;
}

eZ debug

Timing: Jan 30 2025 21:41:45
Script start
Timing: Jan 30 2025 21:41:45
Module start 'content'
Timing: Jan 30 2025 21:41:45
Module end 'content'
Timing: Jan 30 2025 21:41:45
Script end

Main resources:

Total runtime0.3878 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 587.8203370.3125
Module start 'content' 0.00810.0116 958.13281,001.4688
Module end 'content' 0.01960.3681 1,959.60163,890.6875
Script end 0.3877  5,850.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.1034200.0002
Check MTime0.00130.3285200.0001
Mysql Total
Database connection0.00100.252510.0010
Mysqli_queries0.289374.59971410.0021
Looping result0.00270.70881390.0000
Template Total0.367794.810.3677
Template load0.00080.204010.0008
Template processing0.366994.628310.3669
Override
Cache load0.00050.133510.0005
Sytem overhead
Fetch class attribute can translate value0.00190.478110.0019
XML
Image XML parsing0.00020.057510.0002
General
dbfile0.01072.7648200.0005
String conversion0.00000.002130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs