[blind-prog] Re: [blind-programming] Re: Find element's position by javascript

  • From: paniz alipour <alipourpaniz@xxxxxxxxx>
  • To: blind-programming@xxxxxxxxxxxxx
  • Date: Tue, 20 Sep 2011 14:32:10 +0330

Thank you ,

And another question I am trying to find elements X,Y I mean it's position I
found some thing such as:

http://www.quirksmode.org/js/findpos.html

but when I use it like this:
var elem=document.getElementsByTagName("div");
findPos(elem[0]);
it doesn't work I don't understand what wrong with it!

Please guide me

Thank you again


On Tue, Sep 20, 2011 at 2:05 PM, E.J. Zufelt <lists@xxxxxxxxx> wrote:

> My recommendation is that you use something like the jQuery Javascript
> library http://jquery.com .
>
> You can then write Javascript code like:
>
> // Create a new element.
> var myEl = $('<div>Something here</div>');
>
> // Find an element in the DOM by id.
> var insertPoint = $('#insert-point');
>
> // Insert the new element before the one we found.
> $(insertPoint).before(myEl);
>
> Everett Zufelt
> http://zufelt.ca
>
> Follow me on Twitter
> http://twitter.com/ezufelt
>
> View my LinkedIn Profile
> http://www.linkedin.com/in/ezufelt
>
>
>
> On 2011-09-20, at 6:27 AM, paniz alipour wrote:
>
> Yes I want just to edit a page ,and the page can be an asp page php page a
> webpage totally no not require generated by CMS.
>
> I want to edit the web page by javascript,yes insert tag by javascript.
> Thanks
>
> On Tue, Sep 20, 2011 at 12:59 PM, E.J. Zufelt <lists@xxxxxxxxx> wrote:
>
>> Can you provide some more information?
>>
>> Do you want to just edit a page, do you want to do the insertion with
>> Javascript, is the page static .html or generated by a content management
>> system?
>>
>> Please try to explain in as much detail as you believe appropriate exactly
>> what you want to do.
>>
>>
>>  Everett Zufelt
>> http://zufelt.ca
>>
>> Follow me on Twitter
>> http://twitter.com/ezufelt
>>
>> View my LinkedIn Profile
>> http://www.linkedin.com/in/ezufelt
>>
>>
>>
>> On 2011-09-20, at 5:25 AM, paniz alipour wrote:
>>
>> Hello All ,
>>
>> I want to insert a html tag into a webpage how can I do that?
>>
>> Thanks
>>
>> --
>> Paniz Alipour
>>
>>
>>
>
>
> --
> Paniz Alipour
>
>
>


-- 
Paniz Alipour

Other related posts:

  • » [blind-prog] Re: [blind-programming] Re: Find element's position by javascript - paniz alipour