Sponsored Content
Full Discussion: PHP Echoed in Ajax
Top Forums Programming PHP Echoed in Ajax Post 302714021 by Corona688 on Thursday 11th of October 2012 03:14:14 PM
Old 10-11-2012
Quote:
Originally Posted by AimyThomas
I have added links to view different days but when it loads up its just loading up a new page. I can't quite remember how I done it but I'd like it to be in ajax if that's possible.
AJAX also loads pages -- it has to get the data somehow. It just does so in javascript with an xmlquery..
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

echoed prompt not appearing until after read command.

I have a script I am runing on a hacked CDLinux live CD called from /etc/rc.d/rc.local. The part of th script in question goes like this. When run from rc.local the prompt "Centre name :" and the colour change does not appear until after I type the input text and press return. Also, I... (2 Replies)
Discussion started by: simonb
2 Replies

2. UNIX for Dummies Questions & Answers

Putting echoed text into a new file

Hi, I've set up a script so that a user answers questions, and then these answers come back onto the screen accompanied by text that I've echoed. Is there a way of putting this into a new file? Thanks (7 Replies)
Discussion started by: likelylad
7 Replies

3. Shell Programming and Scripting

PHP webserver vs AJAX

Hello All I want to develop a news ticker using a PHP webserver instead of polling the RSS feed using AJAX. Let me know if you guys have any idea about this. (0 Replies)
Discussion started by: suvendu4urs
0 Replies

4. Shell Programming and Scripting

execution of a string being echoed in bash

hi all, I am trying to do a loop on a series of plotting function shown below: colorlist=(blue red green); n=0; for k in $xy; do psbasemap $range -JM$scale -B10g5 -X1 -Y1 -P -K > $outfile pscoast $range -JM$scale -B10g5 -D$res -P -W$lwidth -G$fill -O -K >> $outfile echo... (1 Reply)
Discussion started by: ida1215
1 Replies
Jifty::Web::PageRegion(3pm)				User Contributed Perl Documentation			       Jifty::Web::PageRegion(3pm)

NAME
Jifty::Web::PageRegion - Defines a page region DESCRIPTION
Describes a region of the page which contains a Mason fragment which can be updated via AJAX or via query parameters. new PARAMHASH Creates a new page region. The possible arguments in the "PARAMHASH" are: name The (unqualified) name of the region. This is used to generate a unique id -- it should consist of only letters and numbers. path The path to the fragment that this page region contains. Defaults to "/__jifty/empty", which, as its name implies, is empty. arguments (optional) (formerly 'defaults') Specifies an optional set of parameter defaults. These should all be simple scalars, as they might be passed across HTTP if AJAX is used. See Jifty::Web::Form::Element for a list of the supported parameters. force_arguments (optional) Specifies an optional set of parameter values. They will override anything sent by the user or set via AJAX. force_path (optional) A fixed path to the fragment that this page region contains. Overrides anything set by the user. parent (optional) The parent Jifty::Web::PageRegion that this region is enclosed in. region_wrapper (optional) A boolean; whether or not the region, when rendered, will include the HTML region preamble that makes Javascript aware of its presence. Defaults to true. lazy (optional) Delays the loading of the fragment until client render-time. Obviously, does not work with downlevel browsers which don't support javascript. loading_path (optional) The fragment to display while the client fetches the actual region. Make this lightweight, or you'll be losing most of the benefits of lazy loading! name [NAME] Gets or sets the name of the page region. qualified_name [NAME] Gets or sets the fully qualified name of the page region. This should be unique on a page. This is usually set by "enter", based on the page regions that this region is inside. See "qualified_region" in Jifty::Web. default_path [PATH] Gets or sets the default path of the fragment. This is overridden by "path". path [PATH] Gets or sets the path that the fragment actually contains. This overrides "default_path". default_argument NAME [VALUE] Gets or sets the default value of the "NAME" argument. This is used as a fallback, and also to allow generated links to minimize the amount of state they must transmit. argument NAME [VALUE] Gets or sets the actual run-time value of the page region. This usually comes from HTTP parameters. It overrides the "default_argument" of the same "NAME". arguments [HASHREF] Sets all arguments at once, or returns all arguments. The latter will also include all default arguments. enter Enters the region; this sets the qualified name based on "qualified_region" in Jifty::Web, and uses that to pull runtime values for the "path" and "argument"s from the "state_variables" in Jifty::Request before overriding them with the "force" versions. exit Exits the page region, if it is the most recent one. Normally, you won't need to call this by hand; however, if you are calling "enter" by hand, you will need to call the corresponding "exit". as_string Deals with the bulk of the effort to show a page region. Returns a string of the fragment and associated javascript (if any). render Calls "enter", outputs the results of "as_string", and then calls "exit". Returns an empty string. make_body Outputs the results of the region to the current buffer. render_as_subrequest get_element [RULES] Returns a CSS2 selector which selects only elements under this region which fit the "RULES". This method is used by AJAX code to specify where to add new regions. client_cacheable Returns the client cacheable state of the regions path. Returns false if the template has not been marked as client cacheable. Otherwise it returns the string "static" or "action" based on the cacheable attribute set on the template. client_cache_content Returns the template as JavaScript code. perl v5.14.2 2010-12-08 Jifty::Web::PageRegion(3pm)
All times are GMT -4. The time now is 01:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy