101
kaotik
Re: I am having problem with date and time insertion in xoops database
  • 2009/8/25 9:44

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Regarding bookings_date: One problem is you have fields set as integers on MySQL ( int(11) ) and your trying to save characters other then numbers in them.
2 solutions:
- Change type from int to varchar
- Save date as: "20090825"
Regarding bookings_time: Data is probably not being passed correctly to the handler. Try building a simple query and see if it gets inserted.



102
kaotik
Re: Ajax calls directly from Jquery
  • 2009/8/25 9:05

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


looks very interesting frankblack.



103
kaotik
Re: I am having problem with date and time insertion in xoops database
  • 2009/8/25 9:03

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I don't know if the error comes from this:

This:
bookings_date      int(11Mot NULL,

Should be this:
bookings_date      int(11Not NULL,


Replace "Mot" with "Not".



104
kaotik
Jquery usefull plugins
  • 2009/8/24 12:22

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Here are some plugins I think will come in handy:

Jquery Validation
This plugin will check if all mandatory fields were filled. If not it will print a red "please fill in" message.

Dynatree
Ever wanted to build a list of folders, that have folders inside them? Since you are a PHP coder you know how much trouble it would be to acomplish this in PHP. With this handy plugin users can open folders without having to reload on each action. It also supports ajax, so when a user clicks on a folder, it will load only that portion.

Easy tooltips
Tooltips are great for providing more information to end users before they click a link. With this handy plugin you can even put html code into a tooltip!

Form Masks
You have a form and you want users to fill it a certain way (for ex: 12/32-365). Now you can coach users through each element of a form with masks. Look at these examples to better understand.

Carousel
We have all seen carousels on popular sites, such as bbc or cnn. In the old days these were acomplished with flash but it was very hard to pull information from a database, especially using xoops. With this plugin you can easily acomplish the same effect. It even allows ajax calls.

Let me know if this was usefull and I'll write some more.



105
kaotik
Re: Ajax calls directly from Jquery
  • 2009/8/22 15:20

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


nice tutorial hervet. Very helpfull.



106
kaotik
Re: Help with easy eclipse
  • 2009/8/22 9:29

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I actually thought it might be a combination of both your suggestions. I've tried both and it still doesn't work.
For now I'm back to my old trusted pspad.



107
kaotik
Re: Ajax calls directly from Jquery
  • 2009/8/21 16:12

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


frankblack: post your code, javascript and the ajax response and I'll take a look.



108
kaotik
Help with easy eclipse
  • 2009/8/21 16:11

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I've been trying to use easy eclipse. I create a php project for on a folder that already has php files. When I click on file list on the left, it opens the php file with my other editor instead of easy eclipse... why is it doing this?



109
kaotik
Re: Ajax calls directly from Jquery
  • 2009/8/21 9:05

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I haven't tested this, but here's my sugestion:
1- Check what action was performed on the html page as it was passed to the ajax page. In this case "img.innertrigger".
You can either create another option or use one the the existing:
ajaxed.php
if ($_GET['action']=="ajaxinner"){
myFunction_img_innertrigger();
}

2- Now inside the php function place the following code:
<a href="#TB_inline?height=155&width=300&inlineId=hiddenModalContent&modal=true" class="thickbox">Show hidden modal content.</a>

3- In your html page, in order for thickbox to work, place this code inside your javascript area:
$("img.innertrigger").live("click", function() {
tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
    
imgLoader = new Image();// preload image
    
imgLoader.src tb_pathToImage;
    });

What this does is bind a click action to any image called "innertrigger" that is present OR IN THE FUTURE! It means that javascript will work for ajaxed pieces.
Don't forget to include thickbox.js in your html page.



110
kaotik
Re: Ajax calls directly from Jquery
  • 2009/8/20 17:13

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


@Hervet; I've been testing your code:
jQuery('img.btnremove').live("click", function() {}

and WOW! If I had discovered this sooner, I would have saved a LOT of headaches
I'll write another tutorial based on this.

Thanks for the book recommendations, I'm definitely considering buying "learning jquery"




TopTop
« 1 ... 8 9 10 (11) 12 13 14 ... 59 »



Login

Who's Online

116 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits