• Archives

    » Ajax
Apr
18

.live() and the future

Just recently i seen this used by a co-worker, and did not know much about this. So I took some time and looked it up on the jQuery site docs. I was amazed by what it does, the .live() function will match any element now and in the future! This means if you .load() a [...]

Mar
30

Loading content with JQuery

Loading content via Ajax is quick and easy with JQuery. If you have never used jQuery before you might think twice about it!
Below is my html where we will load the content.

1
<div id="LoadContent"></div>

Now lets look at the javascript needed to load a remote page in.

1
$("#LoadContent").load("path/to/remote/file.php");

After that is called the contents of “file.php” would be loaded [...]

Nov
3

Simple Ajax with .NET

Adding Ajax to an application is simple and easy! Ajax is a powerful tool and can make your application look and feel great!
First let’s start by adding a “Script Manager” to the page, now we only have to add this once so it’s best placed in your Master page. The Script Manager needs to be [...]

Oct
14

Winn Scriptatype: 1.7

I wanted to re-cap the new adds in 1.7 for rails. The new method calls are as listed:

# Added V1.7b
textlink_do_fade
textlink_do_puff
textlink_do_blindup
textlink_do_dropout

You can build any of the above calls with:

textlink_do_fade(’Link Text’,'divYouWantToUpdate’,{***},{****})

Visit the project for more info on how to use the latest methods and more. Winn Scriptatype project home page. at Ruby On Rails Railway.

Apr
3

WinnScriptatype:Rails v1.7b

I just released WinnScriptatype version 1.7 beta on the RubyForge project page. I have also made some fixes to version 1.5 and it is now production ready. The latest release has added some new functionality and the ability to make calls to display text. The call still supports the effects and Ajax request url along [...]

Apr
3

Winn Tracker 1.0 beta

It’s time to start tracking everything! Now you can with Winn Tracker; track downloads, page views, how many times a link or image or anything was clicked and, keep track of incoming links.
Very easy to use and start implementing right now! The system only takes one database table, and you can add this table to [...]

Mar
31

WinnScriptatype:PHP v1.5 Available

Call two effects for two different elements with one call. This option is now working in version 1.5! Simply make the call “checkbox_do” then add your effects like so:
[php]
checkbox_do_fade_and_appear(‘div1′, ‘div2′, ‘***’, array(‘userName’ => ‘Bob’));
[/php]
Only change you will have to observe is the second element id input. In this case “div2″ is the second element that [...]

Mar
29

Winn Scriptatype for PHP

Thats right, i have converted the rails plugin to PHP. Now you can use the same functions in your next php application. This php class works the same way by creating a checkbox and on click it will call a script with Ajax that will update your database. On success it will return an effect [...]

Mar
26

Rails Plugin: WinnScriptatype

Making an Ajax checkbox just got easy. This very simple plugin was built for my own use. The idea was to make one call for my checkbox, update to the database, and an effect. This plugin is easy to use and install, i dont have it setup in an svn yet so you will need [...]

Mar
25

New Product: Winn Tracker

Something i have been working on for about three or four weeks now is something called “Winn Tracker”. This new product will have the ability to track page views, downloads and user information in your own custom application or website. Winn Tracker will allow you to make a call to the database to track info [...]

Feb
19

Highlight your UI with rails

If you find yourself needing to highlight something after your Ajax call comes back and is finished. Why not highlight it? If your making a call with remote_function, link_to_remote or other then add this small line of code on. Problem solved!
[ruby]
:complete => visual_effect(:highlight, ‘theDivId’)
[/ruby]
Just give it the div or element id and it works like [...]

Dec
15

Ajax and Ruby on Rails

Submit your form via Ajax and save the results to a database. To do so just follow the steps below. First we need to open the form tag (form_remote_tag), then we will send the form to a url, a position and what id to update!
[ruby] “my_list”, :url => { :action => :addtodo, :id => @list [...]