PHP Function: Can anybody suggest to me the equivalent functionality in jQuery/JavaScript? Answer is this what you’d like to get? voilĂ .
Tag: jquery
how to remember scroll position of page
I am submitting some data to my database then reloading the same page as the user was just on, I was wondering if there is a way to remember the scroll position the user was just on? Answer I realized that I had missed the important part of submitting, so, I decided to tweak the code to store the cookie
Resize textarea based on lines of text that comes from php/mysql variable
I dont need it to resize automatically as you type, I just need it to be the correct size when the page loads the variable is $row[‘text’];
Create an XML file in server using SimpleXML and jQuery Ajax
What I want to do surely can be accomplished but I’m doing something wrong: I want to create an XML file when I use an Ajax call. I got the following code (synthesized). Maybe this example doesn’t work, it’s just to exemplify: HTML PHP in server In this example the PHP code works as is, the other one not. But
Insert multiple text inputs with same name, into one cell in MySql
I have multiple inputs On form submit (using $_POST), i want to take all of the inputs (which by the way, we’ll never now how many will be there [dynamic jquery add/remove input form] ) and combine them into one variable, all nicely separated by ^^^. B.T.W, I am using this format to insert into mysql So in the end
How can I make my Live Feed list update only on the active tab or update it when the tab becomes active again?
I have a Live Feed jQuery box which updates in every 10 seconds, and puts the sites latest comments on top. This is working fine: jQuery makes an Ajax request, calls a PHP, which returns new items or …
Jquery ajax get request
I am new to jquery and php, I have two input fields, zip and city, the city shall output a value based from the zip that the user input. The jquery script shall call a URL: http://domain.com/city?zip.php=”zip; so that zip.php will return an echo value that will output to the city input field. I tried using ajax getXMLHTTP. some times
How to get selected month in jQuery full calendar?
We are using jQuery full calendar for displaying events from database. I need to display the events below the calendar according to user selected month onchange. I can get data according to event …
Standard Practices in Detecting Mobile Devices and Feeding Pages in PHP and jQuery
I see that mobile versions of websites often begin with an “m.” (e.g. http://m.accuweather.com). I’d like to redirect my mobile users to http://m.mysite.com so that I can display a different page. What’s the standard practice way to feed mobile devices the mobile version of a site? Does one detect the type of device on the server-side (if that’s even possible)
Communicate between pop up window and the parent window
I’m working on a PHP/MySQL project using Codeigniter framework. The user fill a form with many data, and give me also FTP access to his web hosting, I want to POST FTP details to a popup after clicking Browse button, user will select a path (I’m using Codeigniter FTP Class), then I’ll grab the path after the user click Save,