Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to create a custom search box that leads to an outside url and I'm trying to figure out the best way to do this in Joomla 3.0
For example: We need to create a text field with character input and have a button that when clicked takes the data in the text field and inserts it into the "variable" part of this URL and then takes you to this URL:
https://forexample.com/storefront/search.do;jsessionid=CD66CBFCC5658D6C9327AA269764EBB2?searchType=keyword&keyword="variable"&emailAddress=
You could use jQuery:
$("button").click(function() {
var variable = $("#textbox").val();
window.location.replace("yoururl&" + variable);
})
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How i show data postet in another website to mysql database, in real time on main page of website using PHP and that any new data is displayed in a new line.
Datas that i need show are: name, and finish time (from race).
Use .setTimeout() JS method on main page of website and do jQuery.ajax() requests to your server to update data.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to use PHP script to replace the 7th character of a HTML form input Field.
Eg.
A234591Q
To become
A23459IQ
Replacing number1 with I letter.
The problem is that I don’t have acess to php script file, so I need to do it in HTML page as customer types data, or at submit time.
Moises
If you have the JQuery library linked on your page, then you can try the following.
First you should give your input an ID e.g <input type="text" id="useranswer">
Then set the onsubmit property of your HTML form to:
<form action="" onSubmit="replaceAt(7,$('#useranswer').val())">
Then define the replaceAt Function.
function replaceAt(index,word){
newWord=word.substr(0,index) + 'l' + word.substr(index+1);
$('#useranser').val(newWord);
}
I have just given the answer for your question as it is not clear how you plan to implement it without access to the source
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to create a simple site for local test, but I need to show on URL the following:
?id=1
How can I do it?
You can do this by hyperlink, form submit, manually typing it into the URL bar and many other methods. Use a hyperlink:
ID1
Im not too sure what you are asking, but if you are looking to add an id variable to the URL you need to add it to the URL when you redirect
EX.
From link
Link
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
in my wordpress e-commerce i have plugin that has select option inside the option i want to add text "Popular" to an existing text.
Ex: Medium Tail
Expected Output should be
Medium Tail/Popular
is there a jquery that could insert text?.
I do appreciate Your help Thank you:
Try this code:
HTML:
<span id="text1">Medium Tail</span>
JS: you can use empty and append method to do that:
$(document).ready(function(){
$("#text1").empty().append("Medium Tail/Popular");
});
Plz check it out: http://jsfiddle.net/o1f77e1y/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a div which value is changed in tyiping... on typing in textarea and when stopped typing its value again changed to no typing or maybe its empty.
how can I put its changing value into mysql table? or update?
any help would b appreciated.
thanks
Learn ajax requests...
By ajax I mean not only ajax. To start learning ajax you must know some jQuery.
Here are some tutorials:
Bucky's Room
Basicly get the value of the div you change while typing and send it to the database by ajax.