Give help. Get help.

  • # March 25, 2013 at 1:29 pm

    Because there are 2 id’s on the page, but they are in my asp-code with an if-statement.

    # March 25, 2013 at 1:36 pm

    >Because there are 2 id’s on the page

    I’m not sure what that means…either way…it shouldn’t be necessary.

    Either something is unique (and gets an ID) or it isn’t…in which case it should get a class to group it with other similar elements.

    # March 25, 2013 at 1:41 pm

    I hope it gets more clearly when you see my asp code :

    < % If (rsDetail.Fields.Item("ProductCatID").Value) = 32 Then %>
    " alt="< %=(rsDetail.Fields.Item("ProductName").Value)%> sticker" name="Image" id="Image" title="" />

    < % Else %>
    " alt="< %=(rsDetail.Fields.Item("ProductName").Value)%> sticker" name="ImageNoTrans" id="ImageNoTrans" title="" />

    < % End If %>

    # March 25, 2013 at 2:11 pm

    Is that language Only reason i ask is the ‘Then’, anywho…. What are you trying to accomplish with two ID’s? I think you misunderstood what toggleClass does, and from what i see in your ASP is you are trying to switch the ID’s rather then the classes?

    Are you wanting this operation to happen on the server side rather then through JS?

    # March 25, 2013 at 2:24 pm

    ASP VBScript
    The page is a Detail-page wich is used by multiple other pages(categorie).
    If the categorie =32, then the page uses another div. The image id is for a javascript behind.

Viewing 5 posts - 16 through 20 (of 20 total)

You must be logged in to reply to this topic.