Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6575637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:24:41+00:00 2026-05-25T15:24:41+00:00

I have a webpage where a user can ‘add an article’; when they click

  • 0

I have a webpage where a user can ‘add an article’; when they click to ‘add an article’ it opens an iframe (a pop-up modal box).

In the Iframe there is a form with ‘save’ and ‘cancel’ buttons – what I’m trying to do is make it so when the user hits ‘save’, it will save the data to the database, and then refresh the page.

Currently when the user hits “Save” it saves the data, but the page remains open. The only way of knowing it saved is that the text “Add Item” changes to “Edit Item”.

The component that handles this whole process is listed here

The ‘form’ code that is what the users see and fill out is listed here:
http://code.google.com/p/joomlaworks/source/browse/trunk/K2/components/com_k2/views/item/tmpl/form.php?r=604

I know very little about javascript, and only moderate knowledge of php. When the user hit’s ‘save’, postback is generated – I just don’t know how to tell from where.
I’m thinking if I could put the following code into the postback it would do what I want:

window.parent.location.reload();

If anyone can help me to figure out where the postback is being generated from, and how I put that code in there it would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:24:42+00:00Added an answer on May 25, 2026 at 3:24 pm

    http://community.getk2.org/forum/topics/solved-adding-articles-on-the?xg_source=activity

    That thread has the answer to the problem. I ended up writing code myself to incorporate into the K2 component.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The basics: I have a webpage where a user can 'add an article'; when
I have a javascript backed 'print' button on my webpage where the user can
I have around 50 textboxes in my webpage, where user can enter numeric values.
I have an ASP.NET webpage where a user can generate 5 different types of
I have a webpage that dynamically loads a user control. Each user control can
I have a TextBox on my ASP.NET webpage, where the user can enter a
Please see the the following http://valogiannis.com/recent/ .I have a webpage and when user click
I have a webpage that has a comment box that can be toggled by
I have a webpage where I want the user to see a new image
I have little question about how web browser retrieve webpage? I know this User

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.