User Profile

Collapse

Profile Sidebar

Collapse
xhunter
xhunter
Last Activity: Sep 6 '08, 02:02 AM
Joined: May 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Javascript error conflict between separate classes

    I have been working on this for some time and I came to the conclusion that I have no idea what is the problem,

    I am sure it should be something simple that I am overlooking, but I can't figure where,

    I have written some classes to load the google map using google map API and a grid using extjs,

    here is the page :
    http://tinyurl.com/5clr49

    and here is the classes:
    http://tinyurl.com/6ryng5...
    See more | Go to post

  • xhunter
    replied to MySQL query
    thanx alot,

    I ended up using the "GROUP BY" instead, as the jobid was different for different jobs,

    but anyways it works now they way I want it,

    thanks again for ur help, I didn't think of using a 2nd select :)
    See more | Go to post

    Leave a comment:


  • xhunter
    replied to MySQL query
    thanx,

    when I saw u using 2 select statements, that's when what I immediately thought to use but I ran into 1 little problem, I need to get a value from the first select to use in the 2nd one, I could get it

    [CODE=mysql]
    SELECT * FROM jobs d
    LEFT OUTER JOIN (SELECT * FROM logs WHERE d.id = cjobid ORDER BY jobid DESC LIMIT 1) f
    ON d.id = f.cjobid
    [/CODE]

    as you would see, "d.id"...
    See more | Go to post

    Leave a comment:


  • xhunter
    replied to MySQL query
    OK,

    I think there is a problem I didn't think the first time.

    actually my first table is a list of jobs and the 2nd is the list of logs,

    so there actually could be no records in the logs for the jobs in the first table, so joining the table1 to 2 would skip the records with no log.

    i got my hopes up for sec..... :/
    See more | Go to post

    Leave a comment:


  • xhunter
    replied to MySQL query
    hmm.....

    that makes things a little complicated in my scripts going around and joining table 1 instead..
    I am gonna try to make it out, hope it works

    by the way, does that make this "2" queries on the database ?, I am trying to get the number of my queries as minimal as possible,...
    See more | Go to post

    Leave a comment:


  • xhunter
    replied to find if exec is enabled
    in PHP
    thanks, I will use that, hope it works with no errors,
    i can't be sure of anything unless I could try it for every situtation...
    See more | Go to post

    Leave a comment:


  • xhunter
    started a topic MySQL query

    MySQL query

    Hi
    I can't get this table join to work

    lets say I have 2 tables

    table 1

    Code:
    ID NAME
    1  S1
    2  S2
    table 2

    Code:
    ID TIMECREATED ACTIVE
    1   time                    1
    2   time                    0
    1   time                    1
    1   time                    0
    2   time                    1
    ...
    See more | Go to post

  • xhunter
    replied to find if exec is enabled
    in PHP
    many hosts do disable it,
    i think it works like adding it to the php.ini :
    [PHP]disable_functio ns = exec[/PHP]

    I am not sure that "function_exist s" would really work, and since my host has it disabled and I don't have access to a host with exec enabled, I can't check it.

    I was wondering if a way is known to check for it.

    edit:
    disabled/enabled, i think it returns that the...
    See more | Go to post

    Leave a comment:


  • xhunter
    started a topic find if exec is enabled
    in PHP

    find if exec is enabled

    I am working on a script for my users, in which at a part of it i want to let them know if "exec" command is enabled and can be used in their server,
    is that possible?
    See more | Go to post

  • xhunter
    replied to submit a form in a popup
    Problem Solved.
    thankx.
    See more | Go to post

    Leave a comment:


  • xhunter
    started a topic submit a form in a popup

    submit a form in a popup

    Ok,
    I hope I can get some help here,

    Basically what I want to do, is to have my form to be submitted to a popup,
    no problem there,
    the problem is,

    I want to initiate this from a button that is pressed on Another form, but no matter what I get it to open on another page not the popup.

    something like :

    Code:
    function popup(){
    window.open("",
    ...
    See more | Go to post

  • Ok,
    I managed to fix the classid problem by using "url" instead of "filename" that is

    document.mediaP layer.url = address;


    but yet it is not working in FF,

    I searched on internet and some suggested to use "src" as embed uses this param name, but no success with that either.

    I didn't find any working javascript manipulation of WMP for FireFox....
    See more | Go to post

    Leave a comment:


  • There is another strange thing,

    it doesn't really matter to me, but I thought maybe that is sort of related.

    This script of mine, in IE , only works with this classid :
    "22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    which is for WMP6.4

    if set to any other calssids:
    WMP7-9-10:6BF52A52-394A-11D3-B153-00C04F79FAA6


    it doesn't work, not even in IE (no errors),...
    See more | Go to post

    Leave a comment:


  • it works perfectly in IE with or without javascript (with a source in param),

    it works in FF when a real src has been specified,

    the javascript is supposed to change that source (with no source specified at first),

    the reason that I said that param is not needed is as i think that part of embedding is for IE and in my case that I am not putting any src for initial load and load movies through js it works...
    See more | Go to post

    Leave a comment:


  • thanx.

    as I mentioned, it works perfectly in IE and so param FileName is not really needed.

    I tried giving a different name for object and embed, but didn't work again.

    it just doesn't work, without returning any errors (firebug)....
    See more | Go to post

    Leave a comment:


  • controlling mediaplayer source through javascript in Firefox

    ok here is my problem,

    I am trying to change the source file of the mediplayer using javascript, my script works perfectly in "Internet Explorer", but no matter what I do, it doesn't work in Firefox

    here is my player :
    [HTML]
    <OBJECT classid=CLSID:2 2D6F312-B0F6-11D0-94AB-0080C74C7E95
    height=276 id=mediaPlayer type=applicatio n/x-oleobject width=320
    standby="Loadin g Video...">...
    See more | Go to post

  • xhunter
    replied to Embedded Media Player
    any commnets????? :(
    See more | Go to post

    Leave a comment:


  • xhunter
    started a topic Embedded Media Player

    Embedded Media Player

    I have this problem on my website and no matter what I have not been able to get over it,
    it is really getting on my nervers.

    it's a problem that only exists in non IE browsers.

    the frame work of my website is php and lets say here is how the player is shown with very simple syntaxes:

    [HTML]<OBJECT id="VIDEO" width="'.$x.'" height="'.($y+6 0).'" CLASSID="CLSID: 6BF52A52-394A-11d3-B153-00C04F79FAA6"...
    See more | Go to post

  • xhunter
    replied to Error: uncaught exception in Firefox
    ok,

    here it goes :

    [CODE=javascript]

    var xmlHttp=p211Get XmlHttpObject() ;
    if (xmlHttp==null) {alert ("Browser does not support HTTP Request");retur n;}
    var requestTimer = setTimeout(func tion() {
    xmlHttp.abort() ;
    document.getEle mentById(divid) .innerHTML='Ret rying....';
    xmlHttp=p211Get XmlHttpObject() ;
    xmlHttp.onready statechange=fun ction...
    See more | Go to post

    Leave a comment:


  • xhunter
    replied to Error: uncaught exception in Firefox
    thanks for all the help,

    I am still not sure about it,

    what the script does is to set a timeout which is cleared when readystate is 4 that mean sort of checking the readystate, so if there is an issue in completion of the request before this state, the timeout function starts working.

    so in a normal case, there is no errors at all, only when there is a problem.

    (I simulate a problem by limiting...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...