[Javascript] Changing an Objects ID and Name

Terry Riegel riegel at clearimageonline.com
Wed Sep 6 09:41:28 CDT 2006


No, I want to swap everything including the src. Sorry if that wasn't  
clear.

Terry


On Sep 6, 2006, at 9:46 AM, Matt Ludbrook wrote:

> But you said you wanted to swap the IDs. Your initial description  
> makes it
> sound like you want to swap everything except the src. In that case  
> swapping
> the src would be the easier way of solving your prob.
>
>
> Matt
>
>
>
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu [mailto:javascript- 
> bounces at LaTech.edu]
> On Behalf Of Terry Riegel
> Sent: 06 September 2006 14:35
> To: [JavaScript List]
> Subject: Re: [Javascript] Changing an Objects ID and Name
>
> Sure, but then I would have an ID that represented the wrong image.
> And any subsequent manipulations with that image would be for the  
> wrong ID.
>
> Swapping the src tag makes it look like it has swapped, but further
> javascript queries are going to be referencing the wrong ID,  
> height, width,
> etc...
>
> Terry
>
>
> On Sep 6, 2006, at 9:11 AM, Mike Dougherty wrote:
>
>> wouldn't it be easier just to swap their src attributes?
>>
>> On Wed, 6 Sep 2006 08:56:00 -0400
>>  Terry Riegel <riegel at clearimageonline.com> wrote:
>>> Hello,
>>> I would like to swap out an image in an application I am writing.
>>> Basically I want to swap two image tags, the trick is I want to swap
>>> their ID and NAME tags also.
>>> The important thing Is I would like to swap all of the attributes
>>> out. i.e. width,height,id,name,src
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date:  
> 05/09/2006
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date:  
> 05/09/2006
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list