Jump to content

Omirion

Members
  • Posts

    162
  • Joined

  • Last visited

    Never

About Omirion

  • Birthday 04/30/1989

Profile Information

  • Gender
    Male

Omirion's Achievements

Member

Member (2/5)

0

Reputation

  1. Ah! So that's what i was missing . Thanks for the input, is really helpful
  2. Np, sorry i couldn't help more, just haven't done PHP in while as i said.
  3. type: "POST", url: "app_delete.php?records=" + records, data: dataString, You are mixing POST and GETS together either go with one or go with the other. Also I'm not 100% sure the dataString conversion is corect. Haven't done PHP in a while, might ask at the PHP forum how to convert values from JS to read in PHP. One way i seem to remember doing it is converting to XML string, ot JSON string. Also you could use this. http://jquery.hohli.com/ A php-jQuery thing. Haven't used it personally, but reading the tutorials seems easy enough. And does exactly what you want.
  4. warning+warning1+warning2+warning3+warning4 Most of these are undefined and i suspect the are breaking your script. If you don't insist on writing your own validation script i advice you to try this: http://docs.jquery.com/Plugins/validation
  5. One way: You could send the id's to a separate PHP script with ajax. http://api.jquery.com/jQuery.ajax/ $.ajax({ type:, url:, data:, success:fn(data, textStatus, jqXHR){} })
  6. Hey, I found something interesting. When matching a RegEx literal against a string if your match fails the String.match() function returns an Object. The JS reference clearly states the it's supposed to return null on fail. I ran a for..in on it a got these key/value pairs. | key | Typeof value | value 0 string index number 0 input string px Here is the setup. $(document).ready(function () { var a = "px"; var b = a.match(/\d*/); for (v in b) { document.writeln(v + " " + typeof b[v] + " " + b[v]) } }) Tested on FF 6 and Chrome. Should i report this or am i missing something so hard i should stop coding for today...
  7. Readable code: Read notes bellow. var nicLinkButton = nicEditorAdvancedButton.extend({ addPane:function(){ this.ln=this.ne.selectedInstance.selElm().parentTag("A"); this.addForm({ "":{ type:"title", txt:"Add/Edit Link" }, href:{ type:"text", txt:"URL", value:"http://", style:{ width:"150px" } }, title:{ type:"text", txt:"Title" }, target:{ type:"select", txt:"Open In", options:{ "":"Current Window", _blank:"New Window" }, style:{ width:"100px" } } }, this.ln )}, submit:function(C){ var A=this.inputs.href.value; if(A=="http://"||A=="") { alert("You must enter a URL to Create a Link"); return false } this.removePane(); if(!this.ln){ var B="javascript:nicTemp();"; this.ne.nicCommand("createlink",B); this.ln = this.findElm("A","href",B) } if(this.ln){ this.ln.setAttributes({ href:this.inputs.href.value, title:this.inputs.title.value, target:this.inputs.target.options[this.inputs.target.selectedIndex].value } )}}}); nicEditors.registerPlugin(nicPlugin,nicLinkOptions); Notes: there is some code that doesn't add up. So either i split the code wrong, or there is more code before it. Also i'm sure providing a link of the plugin would help. Also if there is any code written by you using the plugins API or whatnot. Seeing as i have never used it i don't know how i functions.
  8. hey again Now that i see you made a little effort i can help you You should go ahead and place this code var online = document.getElementById("online"); var offline = document.getElementById("offline"); if(isSetCookie("letsChat")){ online.style.display = "vissible"; offline.style.display = "none"; } else { online.style.display = "none"; offline.style.display = "vissible"; } in the onReady function. Syntax: window.onload = function () { //thins happen here } What this does is execute whatever is in the function when the Document is loaded. Since you are calling your function when nothing has happened yet, you cannot expect it to work Happy coding
  9. Sorry your code i way to jumbeled for me to sift trough. You need to pass the value you put in the cookie to isSetCookie. Thank proceed as you explained. if(isSetCookie("value")){do whatever} else {do something else} Also your jedi mind tricks will not work on me , i'm from eastern Europe, we don't buy into theese things. Good luck and all...
  10. How's it going man, got it figured out yet. Sorry i can't find the time to complete that code. I'm just swamped with projects at the moment, and the deadlines are creeping up. So i have some more advice, i think i found the culprit. One possibility is this line rotateSwitch(); //Resume rotation }); this is in the Hover event. I suspect sometimes it swticjes to manu elements at ones, because we end the animation, the next obj is selcted, we start the animation with rotateSwitch and select the next element to the next. I might be wrong though this is theoretical. Otherwise setInterval might be the issue. Those are really buggy functions, always were. I du suggest you rewrite your code to work recursivly with setTimeout. It's not a whole lot diffrent than setInterval. This is the structure you need to follow: 1:start the rotation 2:at the end of the rotation ,inside the function, you need to setTimeout(func,time) and keep the instance in a var, same as interval. func being you rotate function, time being the number of MS delay to function start 2a: Basicly the same as setInterval. 3:on hover clearTimeout on the stored refrence 3a on hover out start the func manualy Good luck, sorry for not being able to help again..
  11. I decided to take the insight of an admin here at PHPfreaks, and maybe ask around before i go diving in 50 feet water So anyway. Does anyone have any experiance they like to share working with large scale (or small) open source projects? I currently am thinking of trying to do something JS related i won't go into detail, but in short i have this thing that i think could be interesting and a can eather keep it for myself, or give it to the world in hopes it contributes in a positive way. I prefer the second. But generally how do you get started with opensource. I've seen alot of projects on google.code get attention, also openHatch i think it was.
  12. You do realise that "random text @hello" has 18 chars right?
  13. You set you cookie like so: The semicolons needs to be outside the quotes document.cookie = "someValue=1"; then you get it with this function function isCoockieSet(value) { var foo = document.cookie.split("="); for (key in foo) { if (foo[key] == value) { return true }; } return false; } You call the function like so: isCookieSet('YourValue') in this case someValue. The func will return true if cookie is there. False otherwise. Just remember to pass a string to isCookieSet PS: lol dude chill out.
  14. @thorpe That will work. Thanks. @nogray Strange... Might be a browser issue i'm on the beta channel with firefox. Maybe that's the problem, will give it a run on other browsers. Thanks for the heads up.
  15. i am currently refactoring your code to work in a recursive rather than a iterative way. I think the problem is there. Will post it when it's done, i have to meet some deadlines today so it might be a little late.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.