I have my HTML like this:
<table>
<caption class="my_caption">Table 1.1: TABLE CAPTION</caption>
<tr>...</tr>
<tr>...</tr>
...
I need to get the caption text so I can make some string comparison. I've tried doing .val(), .text(), .html() and .value but none of them work.
Thanks for your help.
EDIT:
I actually have a few of those...
The form that will be submitting the data will have somewhere between 10 and 100 values being sent to the PHP file. The number of inputs is stored in a variable called count within my javascript function but I don't know how to transfer its value to my PHP file.
Another idea I had was to have a while loop that detected a null value and...
Here is the situation: I have a link of a page that gives only 1 or 0;
http://www.mybilet.com/connectors/functionAjax.php?islem=getBosDoluKoltuk&serverId=228&showtimeId=46666
Page is not mine.
So I want to build an alarm system in another page according to this value. i.e. if the value is 1, the page plays a music. How can I ge...
I've got a CakePHP search form that has 'type'=>'get'. Basically, one of the elements in the form is a submit button of type image. When the form is posted, in the URL I always get these x & y coordinates of the image submit button:
http://site.com/controller/action?x=22&y=36&query=hello
Is there any way I can prevent the coor...
Can any one please tell whats going on in this program? My one main doubt is about the 1st condition from where will we get the method for REQUEST_METHOD i mean the program is gng in the 1st if loop so REQUEST_METHOD == GET but where are we setting it.
<html>
<head><title>Temperature Conversion</title></head>
<body>
<?php
if ($_SERVER[...
Are cookies preserved while doing windows.location(url), if domain of url is the domain of the current page?
...
Hi! First timer to the site, not an overly experienced php programmer here :)
I have a problem, i am using an iframe within a site which im attempting to use a session variable inside, firstly ive just been trying to display the session variable to make sure they are accessible from within the iframe:
echo "session of productcheck...
I have this jquery script :
$.fn.myFoo = function(){
alert(this.selector)
alert($(this).selector);
}
then i call it like so.
$('#myID').myFoo();
I need but it returns empty: i need it to return "myID" i can't seem to find a way to do this can some one help please?
...
I generally use $.get() and $.post() for all of my asynchornous calls, but they're usually qualified with the final parameter being "JSON," indicating that I'm expecting to handle JSON data within my callback.
Is there any benefit to using $.get([url],[data],[callback],"JSON") over $.getJSON([url],[data],[callback])? Is it nothing more...
Is it bad practice to issue the following POST request:
/test?a=1&b=2
POST data: c=3&d=4
Notice that 2 parameters are part of the URL and 2 parameters are part of the POST content.
On another note, is the following rule still recommended:
GET request: retrieve content from
the server but do not change anything
on the server.
POST r...
Rails is supposed to magically see that a request is a "DELETE" versus "GET" request, right?
I can hit http://localhost/controller/destroy/1 and it'll delete the record. How do developers typically prevent such silly deleting?
...
I wan't to know How to send data using GET to Java Script
like from
link: C:/folder/test.html?x=1
<script>
//when page accessed
//access x data sent in from the link
</script>
Note, this is for client page not server!
...
In the code below, DoGet is working very stable. But DoPost throws an uncatcheable InvalidOperationException randomly. I am lost. Any pointers will be of immense help.
/*
Environment
-------------
* NET CF 2.0
* WM 5.0(USA Mobile Pocket PC Emulator)
* Windows XP Professional SP2
* VS 2008
*/
/*
The exception...
Hello! I have to send get or post request to localhost:
<?php
if(@$_GET['option']) {
echo "You said \"{$_GET['option']}\"";
}else if(@$_POST['option']) {
echo "You said \"{$_POST['option']}\"";
}
?>
ive using this code:
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://localhost/wsh/index.php?o...
I've got an html form that submits via AJAX (jquery Form Plugin) to a PHP Web Proxy on my server. The web proxy uses curl to POST to a third party script.
My html form has inputs with names like p[fname], p[lname], c[name], p[loc], p[loc][email], p[loc][email][detail]. The names are specified by the third party application.
When I use ...
I am using :
function AuthenticateUser(alias, password) {
//$(document).unbind('keypress');
$("#Login").unbind("click");
$.getJSON(RPC_URL + "?c=User&password=" + urlencode(password) + "&alias=" + alias + "&m=login&jsoncallback=?", function(data){
CheckAuthentication(data,alias,password);
});...
I'm trying to make seo to search queries. i've got a form like this:
<form action="index.php?<?=$_GET['search-input01']?>'" method="get">
<p class="nom t-center">
<label for="search-input01">All:</label>
<input type="text" size="75" name="q" id="search-input01" />
<input type="image" src="design/search-button.gif" cla...
Using jQuery I would like to loop through an array of links and load the contents of each link into a DIV after a set interval. For example, if I have my parent page "parent.html" and an array of links - "test1.html, test2.html and test3.html" I would like to initially load test1.html into a div within parent.html and then after a set in...
I'm trying to load via Ajax the last post of a twitter account. I have the url, which is :
http://twitter.com/statuses/user_timeline/myuser.json?count=1
This works :
$.get("test.php", function(data){
alert("Data Loaded: " + data);
});
This doesn't even make a request if I monitor the console in Firebug :
$.get("http://twitter.co...
I have the following functions in my ProceduresControlller:
Function Add(ByVal bpid As Integer) As ActionResult
Return View(GetAvailableProcedures(bpid))
End Function
<AcceptVerbs(HttpVerbs.Post)> _
Function Add(ByVal bpid As Integer, ByVal code As String, ByVal covered As Boolean) As ActionResult
AddProcedure(bpid, codes, cove...