Sponsored Content
Top Forums Web Development include virtual perl-script - submit button opens a new page.. Post 302446506 by tip78 on Thursday 19th of August 2010 07:57:18 AM
Old 08-19-2010
yes i'm kind of noob in web-programming. did not much forms yet Smilie
thing is not in outputting the form
the thing in a new window which is opening when submitting the form
the form have a target you can use <form action=script target=newwindow>
then main page will be without changes and script output will be in newwindow
also it is possible to use ajax for smooth but i don't know ajax Smilie
so how to NOT open the newwindow or immediately close it - is it possible?
or how to do it smooth without ajax?

---------- Post updated at 03:57 PM ---------- Previous update was at 10:14 AM ----------

ok found the answer:
<iframe name=someframe height=0 width=0 frameborder=0></iframe>
<form action=script target=someframe>

then there will be no windows and no visible changes on the page..
but still not smooth.. need ajax it seems
tip78
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl and refresh button, save twice?

Hi guys, I am writing a simple script save_me.cgi that can save the data in form.html into a txt (data.txt)file. But when user click "refresh" button one the browser on page save_me.cgi, the data will be save again in the data.txt. could someone help me on this issue? a studpid way... (3 Replies)
Discussion started by: gusla
3 Replies

2. UNIX for Dummies Questions & Answers

Script for using the Back button and the Close button

Here's a question I have for anyone that might be able to help me: I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a... (1 Reply)
Discussion started by: mdgibson
1 Replies

3. UNIX for Dummies Questions & Answers

Include PERL script with in the unix shell script

Hi Gurus, Is it possible to include perl script with in the unix shell script? What would be the general syntax? In the above case, is it required to write the below first two lines of codes? #!usr/bin/sh -x #!usr/bin/perl -w Thanks in advance / Mysore Ganapati. (1 Reply)
Discussion started by: ganapati
1 Replies

4. Shell Programming and Scripting

Perl script to copy contents of a web page

Hi All, Sorry to ask this question and i am not sure whether it is possible. please reply to my question. Thanks in advance. I need a perl script ( or any linux compatible scripts ) to copy the graphical contents of the webpage to a word pad. Say for example, i have a documentation site... (10 Replies)
Discussion started by: anand.linux1984
10 Replies

5. Shell Programming and Scripting

include virtual perl-script - submit button opens a new page..

hello 2 all I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"--> filename is a name of the file which script is using the script is used for a score show (the number... (0 Replies)
Discussion started by: tip78
0 Replies

6. Shell Programming and Scripting

Perl - radio button processing

Hi, I am hoping to get some help on perl. I am trying to process a HTML radio button selected value in perl. Basically What I am trying to do is 1. I have some radio buttons which indicated different colors. 2. I have a list box where I want to populate depending on the selected radio button... (1 Reply)
Discussion started by: devtakh
1 Replies

7. Shell Programming and Scripting

Validation of Text field while Click on submit button

I am using Perl CGI. I have created some text fields and getting those values. But i want if user leave the text field blank when he click on submit button then instead of run a script it should give a popup. Please any body suggest me something..??? (0 Replies)
Discussion started by: Navrattan Bansa
0 Replies

8. Shell Programming and Scripting

[SOLVED] Submit Button is not Recognizable

Hi ... I am writing a PERL CGI script where firstly i display a Submit button and when i click that, it will display a group of checkbox values and another submit button. My question is Now, if i click the second submit button, it should get the checkbox values and work with those(do some... (0 Replies)
Discussion started by: gkrish
0 Replies

9. Shell Programming and Scripting

Curl to hit the submit button

Hello, I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code <input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/> <input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies

10. Web Development

Apache2 web application- Submit button - write data into a file

Hello, I am newbie on php-mysql and just know only installation. I have an apache2+php5+mysql installed VPS. What I would like to do is that when visitor enters requested data shown in index.html, submit button will run a script to save each field into a file. Here is an example shown in... (1 Reply)
Discussion started by: baris35
1 Replies
Jifty::Param::Schema(3pm)				User Contributed Perl Documentation				 Jifty::Param::Schema(3pm)

NAME
Jifty::Param::Schema - Declare parameters of a Jifty action with ease. SYNOPSIS
package MyApp::Action::Login; use Jifty::Param::Schema; use Jifty::Action schema { param email => label is 'Email address', is mandatory, ajax validates; param password => type is 'password', label is 'Password', is mandatory; param remember => type is 'checkbox', label is 'Remember me?', hints is 'If you want, your browser can remember your login for you', default is 0; }; DESCRIPTION
This module provides a simple syntax to declare action parameters. It re-exports "defer" and "lazy" from Scalar::Defer, for setting parameter fields that must be recomputed at request-time: param name => default is defer { Jifty->web->current_user->name }; See Scalar::Defer for more information about "defer". schema The "schema" block from a Jifty::Action subclass describes an action for a Jifty application. Within the "schema" block, the localization function "_" is redefined with "defer", so that it resolves into a dynamic value that will be recalculated upon each request, according to the user's current language preference. param Each "param" statement inside the "schema" block sets out the name and attributes used to describe one named parameter, which is then used to build a Jifty::Param object. That class defines possible field names to use in the declarative syntax here. The "param" function is not available outside the "schema" block. ALIASES
In addition to the labels provided by Jifty::Web::Form::Field and Jifty::Param, this module offers the following aliases: ajax validates, # ajax_validates is 1 ajax canonicalizes, # ajax_canonicalizes is 1 order is -1, # sort_order is -1 default is 0, # default_value is 0 valid are qw( 1 2 3 ), # valid_values are qw( 1 2 3 ) available are qw( 1 2 3 ), # available_values are qw( 1 2 3 ) render as 'select', # render_as is 'select' SEE ALSO
Object::Declare, Scalar::Defer merge_params HASHREF HASHREF Takes two hashrefs. Merges them together and returns the merged hashref. - Empty fields in subclasses don't override nonempty fields in superclass anymore. - Arrays don't merge; e.g. if parent class's valid_values is [1,2,3,4], and subclass's valid_values() is [1,2], they don't somehow become [1,2,3,4,1,2]. BUG: This should either be a private routine or factored out into Jifty::Util perl v5.14.2 2010-09-25 Jifty::Param::Schema(3pm)
All times are GMT -4. The time now is 08:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy