[jQuery] Page goes up when I click the link

2009-09-09 Thread merihsaka...@yahoo.com

Hi all,
I am using jQuery BlockUI Plugin (v2). It works success but I have a
small problem, when I click the link, it is bloclking the page but the
main page goes up.

Also same problem for link which is oppening new tab or new windows.
main pages goes up when I click the link.

any advice

Thanks,


[jQuery] Jquery Ajax load function

2009-07-09 Thread merihsaka...@yahoo.com

Hi all

I want to load some url without refreshing the page in my project.
I am using jquery for it. It is working but just once.
When I cliked it twice its not working.
code is like that


  function test(){
$("#main").load("compare.do");
  }




  Test


in jquery ajax examplehttp://docs.jquery.com/Ajax/load#urldatacallback
there is some note;
Note: Keep in mind that Internet Explorer caches the loaded file, so
you should pass some extra random GET parameter to prevent caching if
you plan to call this function more than once

how can I prevent caching? mabe it solves my problem..

Thanks


[jQuery] position problem ( div is going up )

2009-02-26 Thread merihsaka...@yahoo.com

Hi all,

I have 2 different div which names are is "insideParent" and
"insideParent2" .
And when I click the Add Element button the new div is creating
inside
the insideParent.
the problem is when I create a new div , the second div's position is
changing.. Its going down..
Also when I clicked the "Remove Element" button, Its going up.
Is there a way to do it static.


Not : this two div is draggable and All my codes are below..








#parentElem
{
border-style: dotted;
border-color: #9FADB0;
width: 122px;
height: 200px;
border: 1px solid #f;
top: 42px;
left: 72px;
position: absolute;
overflow: hidden;
color: #000;



}


#insideParent
{
color: #fff;


}


.frameClass
{
border: 1px dotted #999;

}





function addEvent(image_path) {
  var ni = document.getElementById('insideParent');
  var divIdName = "myDiv";
  var newdiv = document.createElement('div');
  newdiv.setAttribute("id",divIdName);
  newdiv.innerHTML = "  ";
  ni.appendChild(newdiv);
  }


function removeElement() {
  var d = document.getElementById('insideParent');
  var olddiv = document.getElementById('myDiv');
  d.removeChild(olddiv);



}





 
 
div>


Add Element
Remove Element





jQuery(document).ready(
   function(ev, ui)
{


   jQuery('#insideParent').draggable({
 zIndex:  1000,
 ghosting: false,
 opacity: 0.7,
 containment : 'parent'


});


jQuery('#insideParent2').draggable(
{
zIndex: 1000,
ghosting:   false,
opacity:0.7,
containment : 'parent'


}
);


}
);



Thank you..


[jQuery] position problem

2009-02-26 Thread merihsaka...@yahoo.com

Hi all,

I have 2 different div which names are is "insideParent" and
"insideParent2" .
And when I click the Add Element button the new div is creating inside
the insideParent.
the problem is when I create a new div , the second div's position is
changing.. Its going down..
Also when I clicked the "Remove Element" button, Its going up.
Is there a way to do it static.

Not : this two div is draggable and All my codes are below..






#parentElem
{
border-style: dotted;
border-color: #9FADB0;
width: 122px;
height: 200px;
border: 1px solid #f;
top: 42px;
left: 72px;
position: absolute;
overflow: hidden;
color: #000;
}

#insideParent
{
color: #fff;
}


.frameClass
{
border: 1px dotted #999;
}



function addEvent(image_path) {
  var ni = document.getElementById('insideParent');
  var divIdName = "myDiv";
  var newdiv = document.createElement('div');
  newdiv.setAttribute("id",divIdName);
  newdiv.innerHTML = "  ";
  ni.appendChild(newdiv);
  }


function removeElement() {
  var d = document.getElementById('insideParent');
  var olddiv = document.getElementById('myDiv');
  d.removeChild(olddiv);
}




 
 
div>

Add Element
Remove Element




jQuery(document).ready(
   function(ev, ui)
{

   jQuery('#insideParent').draggable({
 zIndex:  1000,
 ghosting: false,
 opacity: 0.7,
 containment : 'parent'


});

jQuery('#insideParent2').draggable(
{
zIndex: 1000,
ghosting:   false,
opacity:0.7,
containment : 'parent'

}
);


}
);



Thank you..


[jQuery] no background in BlockUI Plugin

2009-02-22 Thread merihsaka...@yahoo.com

Hi all,

I am using JQuery BlockUI Plugin..
and I just want to show my loading gif..
but BlockUI Plugin pop-ups has a background color.. and Its not what I
want..
I know we can change pop-ups css..
But is it possible to show just looding gif.. no backgroundColor, no
table color.. just my own gif.

function loading(){
jQuery.blockUI( {message: jQuery(''), css:{ backgroundColor: '#ff', opacity: '0.7',
color: '#00', border: '0px solid #a00'} } );
};

thank you all


[jQuery] loading while bground changing

2009-02-18 Thread merihsaka...@yahoo.com

Hi all
I hava a JavaScript to change background.. But I need to image load or
something like that..
because It doesn't look good while background changing..
It should shown just inside the tables area, not all the web-page..

thanks,



function changeBg(img) {
   document.getElementById('tabcell').style.background = "url("+img
+")  no-repeat 0 0 ";
}






 Change Background 


[jQuery] jquery.corner remove problem..

2009-02-14 Thread merihsaka...@yahoo.com

Hi all,

I am using jQuery corner plugin (version 1.92)
and I am adding corner style using onclick method..
But I didnt remove it.

function addCorner(){
  jQuery('#divName).corner("fray 8px");
}

function removeCorner(divName){
  jQuery('#divName).corner("none");
}

Actually I also tried to change it but the old one was also there..
jQuery('#divName).corner("round");

Do you know how can I remove it?

thanks


[jQuery] Re: position of draggable div

2009-01-24 Thread merihsaka...@yahoo.com

Is there anyone who knows haw can I get the new positon (x,y) of the
draggable div ?


[jQuery] position of draggable div

2009-01-24 Thread merihsaka...@yahoo.com

Hi all,

I want to ask How can I get the position (x,y) of draggable div.
I am using
jquery-1.2.6.js
ui.draggable.js  (jQuery UI Draggable 1.6rc4)
ui.core.js (jQuery UI 1.6rc4)

thank you



[jQuery] Re: anyone knows vertical carousel ?

2009-01-13 Thread merihsaka...@yahoo.com

Hi Brian and MorningZ,
There is nothing problem with first example.. I just wanted to see
different examples..
Thank you about that..

and thank you Karl,
This is exactly what I am looking for..
I haven't tried yet, I will try it..


[jQuery] Re: anyone knows vertical carousel ?

2009-01-12 Thread merihsaka...@yahoo.com

any other example?


[jQuery] anyone knows vertical carousel ?

2009-01-12 Thread merihsaka...@yahoo.com

I am trying to find "vertical carousel" example. But I havent found
yet. Do you know any jquery example about it?


[jQuery] Draggable function for new created div..

2009-01-06 Thread merihsaka...@yahoo.com

Hi all ,
I have a poroblem with new created div.. draggable function is not
working.

normally draggable div is working successfull like this code.










   



jQuery(document).ready(
function()
{
jQuery('#insideParent').Draggable(
{
zIndex: 1000,
ghosting:   false,
opacity:0.7,
containment : 'parent'
}
);
}
);




-

*** But the problem is starting when I create a new div..
I can add a new div, there is no problem there.. but its not
draggable..








function addEvent() {
  var ni = document.getElementById('insideParent');
  var divIdName = "myNewDiv";
  var newdiv = document.createElement('div');
  newdiv.setAttribute("id",divIdName);
  newdiv.innerHTML =  "test div its draggable";
  ni.appendChild(newdiv);
}






 add new div 



   



jQuery(document).ready(
function()
{
jQuery('#myNewDiv).Draggable(
{
zIndex: 1000,
ghosting:   false,
opacity:0.7,
containment : 'parent'
}
);
}
);





I need help..

thanks alot..


[jQuery] Re: is it possible to get result of this

2009-01-02 Thread merihsaka...@yahoo.com

ok. I did it :) I can get the position of the image..
thank you "the_woodsman" :)


[jQuery] Re: is it possible to get result of this

2009-01-02 Thread merihsaka...@yahoo.com

Do you know any example of getting new position of dragged image?


[jQuery] Re: is it possible to get result of this

2009-01-02 Thread merihsaka...@yahoo.com

Thanks alot,

I'm trying to get position (coordinate) of the image..
Do you know how can I get their position?

Its all code about drag..











$(document).ready(
function()
{
$('#insideParent').Draggable(
{
zIndex: 1000,
ghosting:   false,
opacity:0.7,
containment : 'parent'
}
);
}
);






and ajaxify is very usefull.. I'll use it in my poject. :)

thank you..



[jQuery] is it possible to get result of this

2009-01-02 Thread merihsaka...@yahoo.com

Hi
I am trying to do something with Jquery and Ajax
But I am not sure that its possible or not.
its my example, you can see what I am trying to do.
http://www.unikhas.org/design/index.jsp
I want to save all the things after I desing my tshirt.
Is it possible to do that in Jquery or Ajax ?
or should I use other technologies?

thank you very much..